wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
wp_ability_permission_result › WordPress Filter Hooks
Seit7.2.0
Veraltetn/v
› apply_filters( 'wp_ability_permission_result', $permission, $this->name, $input, $this )
| Parameter: (4) |
|
| Definiert in: | |
| Codex: |
Filters the result of an ability's permission check.
Fires after the required capabilities check and the `permission_callback`. Plugins can use this to layer additional authorization rules on top of the ability's own permission logic — for example, multi-factor authorization gates or temporary permission elevation for trusted contexts. The filter receives `false` when a required capability is missing. Otherwise, it receives the result of `permission_callback`, or `true` when there is none. Filters can return `true` to grant, `false` to deny, or a `WP_Error` to deny with a specific error code and message. Any other return value is coerced to `false`.Ähnliche Funktionen: wp_filter_oembed_result, wp_get_ability_categories, wp_ajax_wp_compression_test, wp_apply_dimensions_support, wp_filter_pre_oembed_result, wp_is_json_request