Yoast\WP\SEO\Presentations

Indexable_Home_Page_Presentation::generate_meta_description()publicYoast 1.0

Generates the meta description.

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

Хуков нет.

Возвращает

Строку. The meta description.

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

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

Код Indexable_Home_Page_Presentation::generate_meta_description() Yoast 20.0

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

	return $this->options->get( 'metadesc-home-wpseo' );
}