Yoast\WP\SEO\Editors\Framework\Seo\Terms

Keyphrase_Data_Provider::get_data │ public │ Yoast 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 28.9

public function get_data(): Seo_Plugin_Data_Interface {
	$keyphrase_usage = $this->get_focus_keyphrase_usage();
	return new Keyphrase( $keyphrase_usage, [] );
}