Yoast\WP\SEO\Presentations
Indexable_Presentation::generate_twitter_title() public Yoast 1.0
Generates the Twitter title.
{} Это метод класса: Indexable_Presentation{}
Хуков нет.
Возвращает
Строку. The Twitter title.
Использование
$Indexable_Presentation = new Indexable_Presentation(); $Indexable_Presentation->generate_twitter_title();
Код Indexable_Presentation::generate_twitter_title() Indexable Presentation::generate twitter title Yoast 15.6.2
public function generate_twitter_title() {
if ( $this->model->twitter_title ) {
return $this->model->twitter_title;
}
if ( $this->open_graph_title && $this->context->open_graph_enabled === true ) {
return '';
}
if ( $this->title ) {
return $this->title;
}
return '';
}