Yoast\WP\SEO\Presenters\Open_Graph

Article_Published_Time_Presenter{}Yoast 1.0

Presenter class for the Open Graph article published time.

Хуков нет.

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

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

Методы

  1. public get()

Код Article_Published_Time_Presenter{} Yoast 19.2

class Article_Published_Time_Presenter extends Abstract_Indexable_Tag_Presenter {

	/**
	 * The tag key name.
	 *
	 * @var string
	 */
	protected $key = 'article:published_time';

	/**
	 * The tag format including placeholders.
	 *
	 * @var string
	 */
	protected $tag_format = self::META_PROPERTY_CONTENT;

	/**
	 * Gets the raw value of a presentation.
	 *
	 * @return string The raw value.
	 */
	public function get() {
		return $this->presentation->open_graph_article_published_time;
	}
}