Fires before an ability gets executed, after input validation and permissions check.
$this->name, $input
Sortie :
@param string $ability_name The name of the ability. @param mixed $input The input data for the ability.
// Ajouter une fonction au hook action 'wp_before_execute_ability'
add_action('wp_before_execute_ability', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($this->name, $input) {
// Votre code ici
error_log('Hook wp_before_execute_ability déclenché');
}
Chargement des actualités...