Fires when an 'action' request variable is sent. The dynamic portion of the hook name, `$action`, refers to the action derived from the `GET` or `POST` request.
N/A
Sortie :
// Ajouter une fonction au hook action 'admin_action_{$action}'
add_action('admin_action_{$action}', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee() {
// Votre code ici
error_log('Hook admin_action_{$action} déclenché');
}
Chargement des actualités...