Yoast\WP\SEO\Presenters\Twitter

Creator_Presenter{}Yoast 1.0

Presenter class for the Twitter creator.

Хуков нет.

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

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

Методы

  1. public get()

Код Creator_Presenter{} Yoast 19.2

class Creator_Presenter extends Abstract_Indexable_Tag_Presenter {

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

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