<prefix>data

The All In One SEO Pack prefix data hook.

Description

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

Parameters (4)

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

Usage

To run the hook, copy the example below.
  1. $sitemap_data = apply_filters( '{$prefix}data', $sitemap_data, $sitemap_type, $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>data callback 
  2. function filter_prefixdata( $sitemap_data, $sitemap_type, $page, $this_options ) { 
  3. // make filter magic happen here... 
  4. return $sitemap_data
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( "{$prefix}data", 'filter_prefixdata', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( "{$prefix}data", 'filter_prefixdata', 10, 4 ); 

Defined (2)

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

/modules/aioseop_sitemap.php  
  1. return apply_filters( $this->prefix . 'data', $sitemap_data, $sitemap_type, $page, $this->options ); 
  1. $sitemap_data = apply_filters( $this->prefix . 'data', $sitemap_data, 'root', 0, $this->options );