wp_after_execute_ability

ACTION wp-includes\abilities-api\class-wp-ability.php (ligne 652) github
Fires immediately after an ability finished executing.

Paramètres

Entrée :
$this->name, $input, $result
Sortie :
@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.

Utilisation

// Ajouter une fonction au hook action 'wp_after_execute_ability'
add_action('wp_after_execute_ability', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($this->name, $input, $result) {
    // Votre code ici
    error_log('Hook wp_after_execute_ability déclenché');
}

Actualités

Chargement des actualités...