Yoast\WP\SEO\Presenters\Open_Graph
Type_Presenter::get
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() Type Presenter::get Yoast 27.8
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 );
}