Yoast\WP\SEO\Presentations

Indexable_Term_Archive_Presentation::generate_open_graph_description()publicYoast 1.0

Generates the Open Graph description.

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

Хуков нет.

Возвращает

Строку. The Open Graph description.

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

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

Код Indexable_Term_Archive_Presentation::generate_open_graph_description() Yoast 19.11

public function generate_open_graph_description() {
	$open_graph_description = parent::generate_open_graph_description();
	if ( $open_graph_description ) {
		return $open_graph_description;
	}

	return $this->taxonomy->get_term_description( $this->model->object_id );
}