Yoast\WP\SEO\Presentations

Indexable_Presentation::generate_open_graph_images()publicYoast 1.0

Generates the open graph images.

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

Хуков нет.

Возвращает

Массив. The open graph images.

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

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

Код Indexable_Presentation::generate_open_graph_images() Yoast 22.3

public function generate_open_graph_images() {
	if ( $this->context->open_graph_enabled === false ) {
		return [];
	}

	return $this->open_graph_image_generator->generate( $this->context );
}