Yoast\WP\SEO\Presenters\Open_Graph

Type_Presenter::get()publicYoast 1.0

Run the opengraph type content through the wpseo_opengraph_type

{} Это метод класса: Type_Presenter{}

Хуки из метода

Возвращает

Строку. The filtered type.

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

$Type_Presenter = new Type_Presenter();
$Type_Presenter->get();

Код Type_Presenter::get() Yoast 19.10

public function get() {
	/**
	 * Filter: 'wpseo_opengraph_type' - Allow changing the opengraph type.
	 *
	 * @api string $type The type.
	 *
	 * @param Indexable_Presentation $presentation The presentation of an indexable.
	 */
	return (string) \apply_filters( 'wpseo_opengraph_type', $this->presentation->open_graph_type, $this->presentation );
}