wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_ability_execute_result › WordPress Filter Hooks

Da7.1.0
Deprecaton/a
› apply_filters( 'wp_ability_execute_result', $result, $this->name, $input, $this )
Parametri: (4)
  • () result The result returned by the registered `execute_callback`, or a `WP_Error` if execution failed.
    Richiesto: Sì
  • () ability_name The name of the ability.
    Richiesto: Sì
  • () input The prepared input data.
    Richiesto: Sì
  • () ability The ability instance.
    Richiesto: Sì
Definito a:
Codex:

Filters the result returned by an ability's execute callback.

Fires after the registered execute callback runs. Plugins can use this to transform the result — response formatting, stripping internal metadata, content safety filtering, response enrichment, or recovering from a failure by returning a successful value. The filter receives whatever the registered callback produced, including a `WP_Error` if execution failed. Filters may pass the `WP_Error` through unchanged, override it with a recovered result, or convert a successful result into a `WP_Error`.




Sorgenti

return apply_filters( 'wp_ability_execute_result', $result, $this->name, $input, $this );