Yoast\WP\SEO\Presentations

Indexable_Author_Archive_Presentation::generate_meta_description()publicYoast 1.0

Generates the meta description.

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

Хуков нет.

Возвращает

Строку. The meta description.

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

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

Код Indexable_Author_Archive_Presentation::generate_meta_description() Yoast 19.10

public function generate_meta_description() {
	if ( $this->model->description ) {
		return $this->model->description;
	}

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

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