Yoast\WP\SEO\Presentations

Indexable_Author_Archive_Presentation::generate_title()publicYoast 1.0

Generates the title.

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

Хуков нет.

Возвращает

Строку. The title.

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

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

Код Indexable_Author_Archive_Presentation::generate_title() Yoast 22.4

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

	$option_titles_key = 'title-author-wpseo';
	$title             = $this->options->get( $option_titles_key );
	if ( $title ) {
		return $title;
	}

	return $this->options->get_title_default( $option_titles_key );
}