Yoast\WP\SEO\Conditionals
WP_CRON_Enabled_Conditional{}
Class that checks if WP_CRON is enabled.
Хуков нет.
Использование
$WP_CRON_Enabled_Conditional = new WP_CRON_Enabled_Conditional(); // use class methods
Методы
- public is_met()
Код WP_CRON_Enabled_Conditional{} WP CRON Enabled Conditional{} Yoast 23.5
class WP_CRON_Enabled_Conditional implements Conditional { /** * Checks if WP_CRON is enabled. * * @return bool True when WP_CRON is enabled. */ public function is_met() { return ! ( \defined( 'DISABLE_WP_CRON' ) && \DISABLE_WP_CRON ); } }