Fires on a non-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_nopriv_{$action}'
add_action('admin_post_nopriv_{$action}', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee() {
// Votre code ici
error_log('Hook admin_post_nopriv_{$action} déclenché');
}
Chargement des actualités...