Yoast\WP\SEO\Editors\Application\Seo

Term_Seo_Information_Repository::get_seo_data()publicYoast 1.0

Method to return the compiled SEO data.

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

Хуков нет.

Возвращает

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

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

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

Код Term_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_term( $this->term );
		$array = \array_merge( $array, $data_provider->get_data()->to_legacy_array() );
	}

	return $array;
}