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 ) #


Parameters

$return_me

(bool)(Required)

$meta_key

(string)(Required)


Top ↑

Return

(bool)


Top ↑

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;
	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.