Yoast\WP\SEO\Llms_Txt\Application\File

Llms_Txt_Cron_Scheduler::schedule_quick_llms_txt_population │ public │ Yoast 1.0

Schedules the llms txt population cron 5 minutes from now.

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

Хуков нет.

Возвращает

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

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

$Llms_Txt_Cron_Scheduler = new Llms_Txt_Cron_Scheduler();
$Llms_Txt_Cron_Scheduler->schedule_quick_llms_txt_population(): void;

Код Llms_Txt_Cron_Scheduler::schedule_quick_llms_txt_population() Yoast 28.9

public function schedule_quick_llms_txt_population(): void {
	if ( $this->options_helper->get( 'enable_llms_txt', false ) !== true ) {
		return;
	}

	if ( \wp_next_scheduled( self::LLMS_TXT_POPULATION ) ) {
		$this->unschedule_llms_txt_population();
	}

	\wp_schedule_event( ( \time() + ( \MINUTE_IN_SECONDS * 5 ) ), 'weekly', self::LLMS_TXT_POPULATION );
}