Yoast\WP\SEO\Presenters\Open_Graph
Type_Presenter{} Yoast 1.0
Presenter class for the Open Graph type.
Хуки из класса
Возвращает
Null. Ничего.
Использование
$Type_Presenter = new Type_Presenter(); // use class methods
Методы
Код Type_Presenter{} Type Presenter{} Yoast 15.6.2
class Type_Presenter extends Abstract_Indexable_Tag_Presenter {
/**
* The tag format including placeholders.
*
* @var string
*/
protected $tag_format = '<meta property="og:type" content="%s" />';
/**
* Run the opengraph type content through the `wpseo_opengraph_type` filter.
*
* @return string $type The filtered type.
*/
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 );
}
}