Yoast\WP\SEO\Presentations
Indexable_Post_Type_Archive_Presentation::generate_title
Generates the title.
Метод класса: Indexable_Post_Type_Archive_Presentation{}
Хуков нет.
Возвращает
Строку. The title.
Использование
$Indexable_Post_Type_Archive_Presentation = new Indexable_Post_Type_Archive_Presentation(); $Indexable_Post_Type_Archive_Presentation->generate_title();
Код Indexable_Post_Type_Archive_Presentation::generate_title() Indexable Post Type Archive Presentation::generate title Yoast 27.3
public function generate_title() {
if ( $this->model->title ) {
return $this->model->title;
}
$post_type = $this->model->object_sub_type;
$title = $this->options->get_title_default( 'title-ptarchive-' . $post_type );
return $title;
}