Yoast\WP\SEO\Llms_Txt\Application\File

Llms_Txt_Cron_Scheduler::schedule_weekly_llms_txt_population │ public │ Yoast 1.0

Schedules the llms txt population cron a week from now.

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

Хуков нет.

Возвращает

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

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

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

Код Llms_Txt_Cron_Scheduler::schedule_weekly_llms_txt_population() Yoast 28.9

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

	if ( ! \wp_next_scheduled( self::LLMS_TXT_POPULATION ) ) {
		\wp_schedule_event( ( \time() + \WEEK_IN_SECONDS ), 'weekly', self::LLMS_TXT_POPULATION );
	}
}