Yoast\WP\SEO\Editors\Framework\Seo\Posts
Social_Data_Provider::get_data()
Method to return the Social domain object with SEO data.
Метод класса: Social_Data_Provider{}
Хуков нет.
Возвращает
Seo_Plugin_Data_Interface
. The specific seo data.
Использование
$Social_Data_Provider = new Social_Data_Provider(); $Social_Data_Provider->get_data(): Seo_Plugin_Data_Interface;
Код Social_Data_Provider::get_data() Social Data Provider::get data Yoast 25.1
public function get_data(): Seo_Plugin_Data_Interface { return new Social( $this->get_social_title_template(), $this->get_social_description_template(), $this->get_social_image_template(), $this->get_image_url() ); }