wxr_export_skip_postmeta filter-hook . WP 3.3.0
Filters whether to selectively skip post meta used for WXR exports.
Returning a truthy value from the filter will skip the current meta object from being exported.
Usage
add_filter( 'wxr_export_skip_postmeta', 'filter_function_name_5406', 10, 3 ); function filter_function_name_5406( $skip, $meta_key, $meta ){ // filter... return $skip; }
- $skip(true/false)
- Whether to skip the current post meta.
Default: false - $meta_key(string)
- Current meta key.
- $meta(object)
- Current meta object.
Changelog
Since 3.3.0 | Introduced. |
Where the hook is called
wxr_export_skip_postmeta
wp-admin/includes/export.php 607
if ( apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) ) {
Where in WP core the hook is used WordPress
wp-admin/includes/export.php 436
add_filter( 'wxr_export_skip_postmeta', 'wxr_filter_postmeta', 10, 2 );