Yoast\WP\SEO\MyYoast_Client\User_Interface

MyYoast_Client_Integration::add_cron_schedulepublicYoast 1.0

Adds a 90-day cron schedule.

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

Хуков нет.

Возвращает

Массив<Строку,. array<string, string|int>> Modified schedules.

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

$MyYoast_Client_Integration = new MyYoast_Client_Integration();
$MyYoast_Client_Integration->add_cron_schedule( $schedules );
$schedules(обязательный)
.

Код MyYoast_Client_Integration::add_cron_schedule() Yoast 28.3

public function add_cron_schedule( $schedules ) {
	if ( ! \is_array( $schedules ) ) {
		$schedules = [];
	}

	$schedules[ self::ROTATION_INTERVAL ] = [
		'interval' => ( self::ROTATION_INTERVAL_IN_DAYS * \DAY_IN_SECONDS ),
		'display'  => \esc_html__( 'Every 90 days', 'wordpress-seo' ),
	];

	return $schedules;
}