wppaste
WordPress

apply_filters( 'wp_get_abilities_result', \WP_Ability[] $matched, array $args )

Since
7.1.0
Filters the full list of matched abilities after all per-item filtering is complete.

Description

Fires after the caller-scoped result_callback. Plugins can use this to sort, paginate, or reshape the final result set universally.

Compatibility

WordPress
since 7.1.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in 1 of the 5 tracked releases, added in 7.1.0.

Parameters

$matched\WP_Ability[]
The matched abilities after all filtering.
$argsarray
The full $args array passed to wp_get_abilities().

Where this hook fires · 1

  • wp-includes/abilities-api.php:572wp_get_abilities()

Source code

	 *	 * @since 7.1.0	 *	 * @param WP_Ability[] $matched The matched abilities after all filtering.	 * @param array        $args    The full $args array passed to wp_get_abilities().	 */	return (array) apply_filters( 'wp_get_abilities_result', $matched, $args );} /** * Checks whether an ability's meta array matches a set of required key/value conditions. * * All conditions must match (AND logic). Supports nested arrays for structured meta,

Changelog

Introduced in 7.1.0.

Signature, return type and hooks compared across 1 parsed release.

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.