Fires authenticated Ajax actions for logged-in users. The dynamic portion of the hook name, `$action`, refers to the name of the Ajax action callback being fired.
N/A
Sortie :
// Ajouter une fonction au hook action 'wp_ajax_{$action}'
add_action('wp_ajax_{$action}', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee() {
// Votre code ici
error_log('Hook wp_ajax_{$action} déclenché');
}
Chargement des actualités...