Yoast\WP\SEO\Presentations

Indexable_Term_Archive_Presentation::generate_meta_description()publicYoast 1.0

Generates the meta description.

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

Хуков нет.

Возвращает

Строку. The meta description.

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

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

Код Indexable_Term_Archive_Presentation::generate_meta_description() Yoast 18.8

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

	return $this->options->get( 'metadesc-tax-' . $this->model->object_sub_type );
}