Yoast\WP\SEO\Presenters\Open_Graph
Type_Presenter::get() public Yoast 1.0
Run the opengraph type content through the wpseo_opengraph_type filter.
{} Это метод класса: Type_Presenter{}
Хуки из метода
Возвращает
Строку. $type The filtered type.
Использование
$Type_Presenter = new Type_Presenter(); $Type_Presenter->get();
Код Type_Presenter::get() Type Presenter::get Yoast 15.7
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 );
}