wpseo_sitemap_public_url
Filter the public URL of the sitemap stylesheet.
Использование
add_filter( 'wpseo_sitemap_public_url', 'wp_kama_wpseo_sitemap_public_url_filter' );
/**
* Function for `wpseo_sitemap_public_url` filter-hook.
*
* @param string $url The stylesheet URL.
*
* @return string
*/
function wp_kama_wpseo_sitemap_public_url_filter( $url ){
// filter...
return $url;
}
- $url(строка)
- The stylesheet URL.
Где вызывается хук
wpseo_sitemap_public_url
yoast/inc/sitemaps/class-sitemaps-renderer.php 339
return apply_filters( 'wpseo_sitemap_public_url', home_url( 'main-sitemap.css' ) );