Yoast\WP\SEO\Llms_Txt\User_Interface

Llms_Txt_Cron_Callback_Integration::populate_file │ public │ Yoast 1.0

Populates and creates the file.

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

Хуков нет.

Возвращает

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

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

$Llms_Txt_Cron_Callback_Integration = new Llms_Txt_Cron_Callback_Integration();
$Llms_Txt_Cron_Callback_Integration->populate_file(): void;

Код Llms_Txt_Cron_Callback_Integration::populate_file() Yoast 28.9

public function populate_file(): void {
	if ( ! \wp_doing_cron() ) {
		return;
	}

	if ( $this->options_helper->get( 'enable_llms_txt', false ) !== true ) {
		$this->scheduler->unschedule_llms_txt_population();
		$this->remove_file_command_handler->handle();

		return;
	}

	$this->populate_file_command_handler->handle();
}