Yoast\WP\SEO\MyYoast_Client\User_Interface

MyYoast_Client_Integration::schedule_key_rotationpublicYoast 1.0

Schedules the key rotation cron job if not already scheduled.

Метод класса: MyYoast_Client_Integration{}

Хуков нет.

Возвращает

null. Ничего (null).

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

$MyYoast_Client_Integration = new MyYoast_Client_Integration();
$MyYoast_Client_Integration->schedule_key_rotation(): void;

Код MyYoast_Client_Integration::schedule_key_rotation() Yoast 28.3

public function schedule_key_rotation(): void {
	if ( ! \wp_next_scheduled( self::CRON_HOOK ) ) {
		\wp_schedule_event( ( \time() + ( self::ROTATION_INTERVAL_IN_DAYS * \DAY_IN_SECONDS ) ), self::ROTATION_INTERVAL, self::CRON_HOOK );
	}
}