Yoast\WP\SEO\Presentations

Indexable_Post_Type_Archive_Presentation::generate_title()publicYoast 1.0

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() Yoast 22.4

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;
}