Yoast\WP\SEO\Presentations

Indexable_Term_Archive_Presentation::generate_title()publicYoast 1.0

Generates the title.

Метод класса: Indexable_Term_Archive_Presentation{}

Хуков нет.

Возвращает

Строку. The title.

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

$Indexable_Term_Archive_Presentation = new Indexable_Term_Archive_Presentation();
$Indexable_Term_Archive_Presentation->generate_title();

Код Indexable_Term_Archive_Presentation::generate_title() Yoast 19.11

public function generate_title() {
	if ( $this->model->title ) {
		return $this->model->title;
	}

	// Get the SEO title as entered in Search Appearance.
	$title = $this->options->get( 'title-tax-' . $this->source->taxonomy );
	if ( $title ) {
		return $title;
	}

	// Get the installation default title.
	$title = $this->options->get_title_default( 'title-tax-' . $this->source->taxonomy );

	return $title;
}