wxr_export_skip_postmeta

The WordPress Core wxr export skip postmeta hook.

Description

add_filter( 'wxr_export_skip_postmeta', (string) $wxr_filter_postmeta, (int) $int, (int) $int ); 

Parameters (3)

0. $wxr_filter_postmeta (string) => 'wxr_filter_postmeta'
The wxr filter postmeta.
1. $int (int) => 10
The int.
2. $int (int) => 2
The int.

Usage

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

Defined (2)

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

/wp-admin/includes/export.php  
  1. add_filter( 'wxr_export_skip_postmeta', 'wxr_filter_postmeta', 10, 2 ); 
  1. if ( apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) )