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 24.0

public function get() {
	/**
	 * Filter: 'wpseo_opengraph_type' - Allow changing the opengraph type.
	 *
	 * @param 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 );
}