Yoast\WP\SEO\Conditionals
WP_CRON_Enabled_Conditional::is_met()
Checks if WP_CRON is enabled.
Метод класса: WP_CRON_Enabled_Conditional{}
Хуков нет.
Возвращает
true|false
. True when WP_CRON is enabled.
Использование
$WP_CRON_Enabled_Conditional = new WP_CRON_Enabled_Conditional(); $WP_CRON_Enabled_Conditional->is_met();
Код WP_CRON_Enabled_Conditional::is_met() WP CRON Enabled Conditional::is met Yoast 23.4
public function is_met() { return ! ( \defined( 'DISABLE_WP_CRON' ) && \DISABLE_WP_CRON ); }