Yoast\WP\SEO\Presenters\Open_Graph
Article_Author_Presenter{} Yoast 1.0
Presenter class for the Open Graph article author.
Хуки из класса
Возвращает
Null. Ничего.
Использование
$Article_Author_Presenter = new Article_Author_Presenter(); // use class methods
Методы
Код Article_Author_Presenter{} Article Author Presenter{} Yoast 15.7
class Article_Author_Presenter extends Abstract_Indexable_Tag_Presenter {
/**
* The tag format including placeholders.
*
* @var string
*/
protected $tag_format = '<meta property="article:author" content="%s" />';
/**
* Run the article author's Facebook URL through the `wpseo_opengraph_author_facebook` filter.
*
* @return string The filtered article author's Facebook URL.
*/
public function get() {
/**
* Filter: 'wpseo_opengraph_author_facebook' - Allow developers to filter the article author's Facebook URL.
*
* @api bool|string $article_author The article author's Facebook URL, return false to disable.
*
* @param Indexable_Presentation $presentation The presentation of an indexable.
*/
return \trim( \apply_filters( 'wpseo_opengraph_author_facebook', $this->presentation->open_graph_article_author, $this->presentation ) );
}
}