Yoast\WP\SEO\Presentations

Indexable_Post_Type_Presentation::generate_meta_description()publicYoast 1.0

Generates the meta description.

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

Хуков нет.

Возвращает

Строку. The meta description.

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

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

Код Indexable_Post_Type_Presentation::generate_meta_description() Yoast 22.3

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

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