Filter hook 'wxr_export_skip_postmeta'

in WP Core File wp-admin/includes/export.php at line 669

Description

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.

Occurrences

Filename Line Number
wp-admin/includes/export.php 669

Parameters

Type Name Description
bool $skip Whether to skip the current post meta. Default false.
string $meta_key Current meta key.
object $meta Current meta object.

Usage Examples

Example 1

add_filter( 'wxr_export_skip_postmeta', 'wxr_filter_postmeta'

PHP Doc

/**
					 * 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.
					 *
					 * @since 3.3.0
					 *
					 * @param bool   $skip     Whether to skip the current post meta. Default false.
					 * @param string $meta_key Current meta key.
					 * @param object $meta     Current meta object.
					 */