Determines whether the current request is a WordPress Ajax request.
N/A
Sortie :
@return bool True if it's a WordPress Ajax request, false otherwise.
// Utilisation de la fonction wp_doing_ajax
$result = wp_doing_ajax();
if ($result) {
// Votre logique ici
}
Chargement des actualités...