wp_doing_cron

FUNCTION wp-includes\load.php (ligne 1764) github
Filters whether the current request should use themes.

Paramètres

Entrée :
N/A
Sortie :
@param bool $wp_using_themes Whether the current request should use themes.
@return bool True if it's a WordPress cron request, false otherwise.

Utilisation

// Utilisation de la fonction wp_doing_cron
$result = wp_doing_cron();

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...