wp_before_execute_ability

ACTION wp-includes\abilities-api\class-wp-ability.php (ligne 631) github
Fires before an ability gets executed, after input validation and permissions check.

Paramètres

Entrée :
$this->name, $input
Sortie :
@param string $ability_name The name of the ability.
@param mixed  $input        The input data for the ability.

Utilisation

// 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é');
}

Actualités

Chargement des actualités...