WP_Import::is_valid_meta_key PHP Method

is_valid_meta_key() public method

Decide if the given meta key maps to information we will want to import
public is_valid_meta_key ( string $key ) : string | boolean
$key string The meta key to check
return string | boolean The key if we do want to import, false if not
        function is_valid_meta_key($key)
        {
            // skip attachment metadata since we'll regenerate it from scratch
            // skip _edit_lock as not relevant for import
            if (in_array($key, array('_wp_attached_file', '_wp_attachment_metadata', '_edit_lock'))) {
                return false;
            }
            return $key;
        }