Yoast\WP\SEO\Editors\Application\Seo

Post_Seo_Information_Repository::get_seo_data()publicYoast 1.0

Method to return the compiled SEO data.

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

Хуков нет.

Возвращает

Массив<Строку>. The specific seo data.

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

$Post_Seo_Information_Repository = new Post_Seo_Information_Repository();
$Post_Seo_Information_Repository->get_seo_data(): array;

Код Post_Seo_Information_Repository::get_seo_data() Yoast 25.1

public function get_seo_data(): array {
	$array = [];
	foreach ( $this->seo_data_providers as $data_provider ) {
		$data_provider->set_post( $this->post );
		$array = \array_merge( $array, $data_provider->get_data()->to_legacy_array() );
	}
	return $array;
}