Yoast\WP\SEO\Editors\Framework\Seo\Posts

Keyphrase_Data_Provider::get_data()publicYoast 1.0

Method to return the keyphrase domain object with SEO data.

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

Хуков нет.

Возвращает

Seo_Plugin_Data_Interface. The specific seo data.

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

$Keyphrase_Data_Provider = new Keyphrase_Data_Provider();
$Keyphrase_Data_Provider->get_data(): Seo_Plugin_Data_Interface;

Код Keyphrase_Data_Provider::get_data() Yoast 25.0

public function get_data(): Seo_Plugin_Data_Interface {
	$keyphrase_usage = $this->get_focus_keyphrase_usage();

	return new Keyphrase( $keyphrase_usage, $this->get_post_types_for_all_ids( $keyphrase_usage ) );
}