iI have tried using many hooks to achieve this , i. I don't want one of my post meta to be updated when we update post .
iI tried doing something like :
add_filter( 'update_post_metadata', 'wpse_163859', 10, 5 );
function wpse_163859( $check, $object_id, $meta_key, $meta_value, $prev_value )
{
return false;
}
iI tried looking at meta.phpmeta.php in wp-includes , tried whole day with lots of code , appreciate any help .