2 comments

  1. I found the following filter, here unlocking all protected meta data:

    add_filter( 'is_protected_meta', '__return_false' ); 
    

    Or it can be fine tuned:

    add_filter( 'is_protected_meta', function( $protected, $meta_key, $meta_type )
    {
        $allowed = array( '_edit_lock', '_test', '_wp_page_template' );
        if( in_array( $meta_key, $allowed ) )
            return false;
    
        return $protected;
    }, 10, 3 );
    

    It allows to display the meta data as well as insert new ones (globally or fine-tuned).

Comments are closed.