Yoast\WP\SEO\Conditionals

WP_CRON_Enabled_Conditional{}Yoast 1.0

Class that checks if WP_CRON is enabled.

Хуков нет.

Использование

$WP_CRON_Enabled_Conditional = new WP_CRON_Enabled_Conditional();
// use class methods

Методы

  1. public is_met()

Код 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 );
	}
}