wpseo_sitemap_exclude_author хук-фильтрYoast 1.0

Filter the authors, included in XML sitemap.

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

add_filter( 'wpseo_sitemap_exclude_author', 'wp_kama_wpseo_sitemap_exclude_author_filter' );

/**
 * Function for `wpseo_sitemap_exclude_author` filter-hook.
 * 
 * @param array $users Array of user objects to filter.
 *
 * @return array
 */
function wp_kama_wpseo_sitemap_exclude_author_filter( $users ){

	// filter...
	return $users;
}
$users(массив)
Array of user objects to filter.

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

WPSEO_Author_Sitemap_Provider::exclude_users()
wpseo_sitemap_exclude_author
yoast/inc/sitemaps/class-author-sitemap-provider.php 242
return apply_filters( 'wpseo_sitemap_exclude_author', $users );

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

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