WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Получай пассивный доход от сайта
класс не описан

Yoast\WP\SEO\Presenters\Twitter

Title_Presenter{} Yoast 1.0

Presenter class for the Twitter title.

Хуки из класса
Возвращает

null. Ничего.

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

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

Методы

  1. get()
  2. ERROR: no method name found on line ``
  3. ERROR: no method name found on line ` */`
  4. ERROR: no method name found on line ``
  5. ERROR: no method name found on line ``

Код Title_Presenter{} Yoast 16.8

<?php
class Title_Presenter extends Abstract_Indexable_Tag_Presenter {

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

	/**
	 * Run the Twitter title through replace vars and the `wpseo_twitter_title` filter.
	 *
	 * @return string The filtered Twitter title.
	 */
	public function get() {
		/**
		 * Filter: 'wpseo_twitter_title' - Allow changing the Twitter title.
		 *
		 * @api string $twitter_title The Twitter title.
		 *
		 * @param Indexable_Presentation $presentation The presentation of an indexable.
		 */
		return \trim( \apply_filters( 'wpseo_twitter_title', $this->replace_vars( $this->presentation->twitter_title ), $this->presentation ) );
	}
}