How to save custom meta only for review data to see only in “Preview Changes”, not the actual post in the front end
问题 I am trying to add custom meta and see at "Preview Changes". I can see the changes but also changes apply to the actual post at Front end. I want the changes will update to the actual post when it Publish or Update not at "Preview Changes" click. Please help. I have followed this plugin. function my_plugin_save_post( $post_id, $post ) { if ( $parent_id = wp_is_post_revision( $post_id ) ) { $parent = get_post( $parent_id ); $my_meta = get_post_meta( $parent->ID, 'my_meta', true ); if ( false !