Need help with this?
Purchase All in One SEO Pack Pro to get dedicated support from us.

Buy Now

The All In One SEO Pack aiosp sitemap filename hook.


apply_filters( {$this->prefix}filename, $filename );

Parameters (1)

0.$filename (string)
change the filename of the XML sitemap that All in One SEO Pack outputs.


You can use this filter hook as in the following example:
add_filter( 'aiosp_sitemap_filename' , 'change_sitemap_filename' ); 

function change_sitemap_filename ( $filename ) {
//Use this variable to set the preferred sitemap filename. You'll want to flush rewrite rules after changing it.
$filename = 'preferred-filename';
return $filename;

Defined (1)

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


For instructions on how to use this code, please refer to our FAQ here.

  • Was this helpful ?
  • YesNo