Yoast\WP\SEO\Expiring_Store\User_Interface

Expiring_Store_Cleanup_Integration::schedule_cleanup │ public │ Yoast 1.0

Schedules the weekly cleanup cron if not already scheduled.

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

Хуков нет.

Возвращает

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

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

$Expiring_Store_Cleanup_Integration = new Expiring_Store_Cleanup_Integration();
$Expiring_Store_Cleanup_Integration->schedule_cleanup(): void;

Код Expiring_Store_Cleanup_Integration::schedule_cleanup() Yoast 28.9

public function schedule_cleanup(): void {
	if ( ! \wp_next_scheduled( self::CRON_HOOK ) ) {
		\wp_schedule_event( \time(), 'weekly', self::CRON_HOOK );
	}
}