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