wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_ability_permission_result › WordPress Filter Hooks

Seit7.1.0
Veraltetn/v
apply_filters( 'wp_ability_permission_result', $permission, $this->name, $input, $this )
Parameter: (4)
  • () permission The permission result returned by `permission_callback`.
    Erforderlich: Ja
  • () ability_name The name of the ability.
    Erforderlich: Ja
  • () input The input data for the permission check.
    Erforderlich: Ja
  • () ability The ability instance.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the result of an ability's permission check.

Fires after the registered `permission_callback` returns. 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. Filters can return `true` to grant, `false` to deny, or a `WP_Error` to deny with a specific error code and message. The filter receives whatever the `permission_callback` produced. Any other return value is coerced to `false`.




Quellcode

$result = apply_filters( 'wp_ability_permission_result', $permission, $this->name, $input, $this );