wpseo_sitemaps_base_url
Filter the base URL of the sitemaps.
Использование
add_filter( 'wpseo_sitemaps_base_url', 'wp_kama_wpseo_sitemaps_base_url_filter' ); /** * Function for `wpseo_sitemaps_base_url` filter-hook. * * @param string $base The string that should be added to home_url() to make the full base URL. * * @return string */ function wp_kama_wpseo_sitemaps_base_url_filter( $base ){ // filter... return $base; }
- $base(строка)
- The string that should be added to home_url() to make the full base URL.
Где вызывается хук
wpseo_sitemaps_base_url
yoast/inc/sitemaps/class-sitemaps-router.php 119
$base = apply_filters( 'wpseo_sitemaps_base_url', $base );