Yoast\WP\SEO\Presenters\Twitter
Title_Presenter::get() public Yoast 1.0
Run the Twitter title through replace vars and the wpseo_twitter_title filter.
{} Это метод класса: Title_Presenter{}
Хуки из метода
Возвращает
Строку. The filtered Twitter title.
Использование
$Title_Presenter = new Title_Presenter(); $Title_Presenter->get();
Код Title_Presenter::get() Title Presenter::get Yoast 15.6.2
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 ) );
}