Yoast\WP\SEO\Conditionals

WP_CRON_Enabled_Conditional::is_met()publicYoast 1.0

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() Yoast 23.4

public function is_met() {
	return ! ( \defined( 'DISABLE_WP_CRON' ) && \DISABLE_WP_CRON );
}