Yoast\WP\SEO\Presentations
Indexable_Term_Archive_Presentation::generate_title()
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() Indexable Term Archive Presentation::generate title Yoast 24.9
public function generate_title() { if ( $this->model->title ) { return $this->model->title; } if ( \is_wp_error( $this->source ) ) { 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; }