wxr_export_skip_termmeta

Filters whether to selectively skip term meta used for WXR exports.

Description

apply_filters( 'wxr_export_skip_termmeta', (bool) $false, (string) $meta_meta_key, (object) $meta ); 

Returning a truthy value to the filter will skip the current meta object from being exported.

Parameters (3)

0. $false (bool) => false
Whether to skip the current piece of term meta. Default false.
1. $meta_meta_key (string)
The meta meta key.
2. $meta (object)
Current meta object.

Usage

To run the hook, copy the example below.
  1. $false = apply_filters( 'wxr_export_skip_termmeta', $false, $meta_meta_key, $meta ); 
  2.  
  3. if ( !empty( $false ) ) { 
  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_termmeta callback 
  2. function filter_wxr_export_skip_termmeta( $false, $meta_meta_key, $meta ) { 
  3. // make filter magic happen here... 
  4. return $false
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'wxr_export_skip_termmeta', 'filter_wxr_export_skip_termmeta', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'wxr_export_skip_termmeta', 'filter_wxr_export_skip_termmeta', 10, 3 ); 

Defined (1)

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

/wp-admin/includes/export.php  
  1. if ( ! apply_filters( 'wxr_export_skip_termmeta', false, $meta->meta_key, $meta ) ) {