You appear to be a bot. Output may be restricted
Description
Create base URL for the sitemap.
Usage
$string = WPSEO_Sitemaps_Router::get_base_url( $page );
Parameters
- $page
- ( string ) required – Page to append to the base URL.
Returns
string base URL (incl page)
Source
File name: wordpress-seo/inc/sitemaps/class-sitemaps-router.php
Lines:
1 to 19 of 19
public static function get_base_url( $page ) { global $wp_rewrite; $base = $wp_rewrite->using_index_permalinks() ? 'index.php/' : '/'; /** * Filter the base URL of the sitemaps. * * @param string $base The string that should be added to home_url() to make the full base URL. */ $base = apply_filters( 'wpseo_sitemaps_base_url', $base ); /* * Get the scheme from the configured home URL instead of letting WordPress * determine the scheme based on the requested URI. */ return home_url( $base . $page, wp_parse_url( get_option( 'home' ), PHP_URL_SCHEME ) ); }