wxr_filter_postmeta() WordPress Function
The wxr_filter_postmeta functionfilters out postmeta data that is not allowed in a WordPress export. This is useful for ensuring that only relevant data is exported.
wxr_filter_postmeta( bool $return_me, string $meta_key ) #
Contents
Parameters
- $return_me
(bool)(Required)
- $meta_key
(string)(Required)
Return
(bool)
Source
File: wp-admin/includes/export.php
function wxr_filter_postmeta( $return_me, $meta_key ) { if ( '_edit_lock' === $meta_key ) { $return_me = true; } return $return_me; }
Expand full source codeCollapse full source codeView on TracView on GitHub