Yoast\WP\SEO\Presentations

Indexable_Presentation::generate_meta_description │ public │ Yoast 1.0

Generates the meta description.

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

Хуков нет.

Возвращает

string. The meta description.

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

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

Код Indexable_Presentation::generate_meta_description() Yoast 28.9

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

	return '';
}