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

Description_Data_Provider{} │ Yoast 1.0└─ Description_Data_Provider_Interface, Abstract_Term_Seo_Data_Provider

Describes if the description SEO data.

Хуков нет.

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

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

Методы

  1. public get_data()
  2. public get_description_date()
  3. public get_description_template()
  4. ERROR: no method name found on line `*/`
  5. ERROR: no method name found on line ``
  6. ERROR: no method name found on line ``
  7. ERROR: no method name found on line ``
  8. ERROR: no method name found on line ``

Код Description_Data_Provider{} Yoast 28.9

class Description_Data_Provider extends Abstract_Term_Seo_Data_Provider implements Description_Data_Provider_Interface {

	/**
	 * Retrieves the description template.
	 *
	 * @return string The description template.
	 */
	public function get_description_template(): string {
		return $this->get_template( 'metadesc' );
	}

	/**
	 * Determines the date to be displayed in the snippet preview.
	 *
	 * @return string
	 */
	public function get_description_date(): string {
		return '';
	}

	/**
	 * Method to return the Description domain object with SEO data.
	 *
	 * @return Seo_Plugin_Data_Interface The specific seo data.
	 */
	public function get_data(): Seo_Plugin_Data_Interface {
		return new Description( $this->get_description_date(), $this->get_description_template() );
	}
}