wpseo_xml_sitemaps_base_url

Create base URL for the sitemaps and applies filters.

Description

(string) wpseo_xml_sitemaps_base_url( (string) $page ); 

Returns (string)

base URL (incl page) for the sitemaps

Parameters (1)

0. $page (string)
Page to append to the base URL.

Usage

  1. if ( !function_exists( 'wpseo_xml_sitemaps_base_url' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'yoast-seo/inc/wpseo-functions-deprecated.php'; 
  3.  
  4. // page to append to the base URL. 
  5. $page = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wpseo_xml_sitemaps_base_url($page); 
  9.  

Defined (1)

The function is defined in the following location(s).

/inc/wpseo-functions-deprecated.php  
  1. function wpseo_xml_sitemaps_base_url( $page ) { 
  2. _deprecated_function( __FUNCTION__, 'WPSEO 3.2.0', 'WPSEO_Sitemaps_Router::get_base_url()' ); 
  3.  
  4. return WPSEO_Sitemaps_Router::get_base_url( $page );