wpseo_opengraph_author_facebook хук-фильтр . Yoast 1.0
Filter: 'wpseo_opengraph_author_facebook' - Allow developers to filter the article author's Facebook URL.
Использование
add_filter( 'wpseo_opengraph_author_facebook', 'filter_function_name_4580', 10, 2 ); function filter_function_name_4580( $article_author, $presentation ){ // filter... return $article_author; }
- $article_author(true/false/строка)
- The article author's Facebook URL, return false to disable.
- $presentation(Indexable_Presentation)
- The presentation of an indexable.
Где вызывается хук
wpseo_opengraph_author_facebook
yoast/src/presenters/open-graph/article-author-presenter.php 33
return \trim( \apply_filters( 'wpseo_opengraph_author_facebook', $this->presentation->open_graph_article_author, $this->presentation ) );