Yoast\WP\SEO\Presenters\Open_Graph
Article_Author_Presenter{}
Presenter class for the Open Graph article author.
Хуки из класса
Использование
$Article_Author_Presenter = new Article_Author_Presenter(); // use class methods
Методы
- public get()
Код Article_Author_Presenter{} Article Author Presenter{} Yoast 24.9
class Article_Author_Presenter extends Abstract_Indexable_Tag_Presenter { /** * The tag key name. * * @var string */ protected $key = 'article:author'; /** * The tag format including placeholders. * * @var string */ protected $tag_format = self::META_PROPERTY_CONTENT; /** * 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. * * @param 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 ) ); } }