Yoast\WP\SEO\Editors\Framework\Seo
Social_Data_Provider_Interface{}
Хуков нет.
Использование
$Social_Data_Provider_Interface = new Social_Data_Provider_Interface(); // use class methods
Методы
- public get_image_url()
- public get_social_description_template()
- public get_social_image_template()
- public get_social_title_template()
Код Social_Data_Provider_Interface{} Social Data Provider Interface{} Yoast 25.1
interface Social_Data_Provider_Interface { /** * Gets the image URL for the post's social preview. * * @return string|null The image URL for the social preview. */ public function get_image_url(): ?string; /** * Retrieves the social title template. * * @return string The social title template. */ public function get_social_title_template(): string; /** * Retrieves the social description template. * * @return string The social description template. */ public function get_social_description_template(): string; /** * Retrieves the social image template. * * @return string The social description template. */ public function get_social_image_template(): string; }