Yoast\WP\SEO\AI\Content_Planner\User_Interface

Content_Planner_Integration::get_script_datapublicYoast 1.0

Returns the script data for the content planner.

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

Хуков нет.

Возвращает

Массив{endpoints:. array<string, string>, minPostsMet: bool, isBannerPermanentlyDismissed: bool}

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

$Content_Planner_Integration = new Content_Planner_Integration();
$Content_Planner_Integration->get_script_data(): array;

Код Content_Planner_Integration::get_script_data() Yoast 27.7

public function get_script_data(): array {
	return [
		'endpoints'                    => $this->endpoints_repository->get_all_endpoints()->to_paths_array(),
		'minPostsMet'                  => $this->is_minimum_posts_met(),
		'isBannerPermanentlyDismissed' => $this->is_banner_permanently_dismissed(),
	];
}