Unset Postmeta

Description

This filter allows you remove the postmeta fields to be copied for revision and duplication.

Usage

add_filter( 'owf_unset_postmeta',  'postmeta_unset' , 10, 1 );

Parameters

  • $ignore_postmeta_keys – array of postmeta keys

Example

add_filter( 'owf_unset_postmeta',  'postmeta_unset' , 10, 1 );
function postmeta_unset( $ignore_postmeta_keys ) {
      array_push( $ignore_postmeta_keys, "meta1", "_meta1" );
      return $ignore_postmeta_keys;
}

Source Code

The filter is located in
oasis-workflow-pro/includes/class-ow-revision-service.php
oasis-workflow-pro/includes/class-ow-duplicate-service.php