Yoast\WP\SEO\Editors\Framework\Seo

Social_Data_Provider_Interface{}Yoast 1.0

Хуков нет.

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

$Social_Data_Provider_Interface = new Social_Data_Provider_Interface();
// use class methods

Методы

  1. public get_image_url()
  2. public get_social_description_template()
  3. public get_social_image_template()
  4. public get_social_title_template()

Код 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;
}