Fires on an authenticated admin post request for the given action. The dynamic portion of the hook name, `$action`, refers to the given request action.
N/A
Sortie :
// Ajouter une fonction au hook action 'admin_post_{$action}'
add_action('admin_post_{$action}', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee() {
// Votre code ici
error_log('Hook admin_post_{$action} déclenché');
}
Chargement des actualités...