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', 'wp_kama_wpseo_og_article_publisher_filter', 10, 2 );

/**
 * Function for `wpseo_og_article_publisher` filter-hook.
 * 
 * @param bool|string            $article_publisher The article publisher's Facebook URL, return false to disable.
 * @param Indexable_Presentation $presentation      The presentation of an indexable.
 *
 * @return bool|string
 */
function wp_kama_wpseo_og_article_publisher_filter( $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.

Где вызывается хук

Article_Publisher_Presenter::get()
wpseo_og_article_publisher
yoast/src/presenters/open-graph/article-publisher-presenter.php 39
return \trim( \apply_filters( 'wpseo_og_article_publisher', $this->presentation->open_graph_article_publisher, $this->presentation ) );

Где используется хук в Yoast SEO

Использование не найдено.