wp_after_execute_ability
Fires immediately after an ability finished executing.
Usage
add_action( 'wp_after_execute_ability', 'wp_kama_after_execute_ability_action', 10, 3 );
/**
* Function for `wp_after_execute_ability` action-hook.
*
* @param string $ability_name The name of the ability.
* @param mixed $input The input data for the ability.
* @param mixed $result The result of the ability execution.
*
* @return void
*/
function wp_kama_after_execute_ability_action( $ability_name, $input, $result ){
// action...
}
- $ability_name(string)
- The name of the ability.
- $input(mixed)
- The input data for the ability.
- $result(mixed)
- The result of the ability execution.
Changelog
| Since 6.9.0 | Introduced. |
Where the hook is called
wp_after_execute_ability
wp-includes/abilities-api/class-wp-ability.php 652
do_action( 'wp_after_execute_ability', $this->name, $input, $result );