<prefix>custom_<sitemap_type>

The All In One SEO Pack prefix custom sitemap type hook.

Description

apply_filters( '<prefix>custom_<sitemap_type>', (unknown) $sitemap_data, (unknown) $page, (unknown) $this_options ); 

Parameters (3)

0. $sitemap_data (unknown)
The sitemap data.
1. $page (unknown)
The page.
2. $this_options (unknown)
The this options.

Usage

To run the hook, copy the example below.
  1. $sitemap_data = apply_filters( '{$prefix}custom_{$sitemap_type}', $sitemap_data, $page, $this_options ); 
  2.  
  3. if ( !empty( $sitemap_data ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the <prefix>custom_<sitemap_type> callback 
  2. function filter_prefixcustom_sitemap_type( $sitemap_data, $page, $this_options ) { 
  3. // make filter magic happen here... 
  4. return $sitemap_data
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( "{$prefix}custom_{$sitemap_type}", 'filter_prefixcustom_sitemap_type', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( "{$prefix}custom_{$sitemap_type}", 'filter_prefixcustom_sitemap_type', 10, 3 ); 

Defined (2)

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

/modules/aioseop_sitemap.php  
  1. $sitemap_data = apply_filters( $this->prefix . 'custom_' . $sitemap_type, $sitemap_data, $page, $this_options ); 
  1. $sitemap_data = apply_filters( $this->prefix . 'custom_' . $sitemap_type, $sitemap_data, $page, $this_options );