I created a plugin that has multiple meta boxes. One meta box saves a single record by using update_post_meta()
. Another meta box saves multiple record by using add_post_meta()
.
I do not have revisions turned on in the post_type.
How would you delete_post_meta()
a single specific record in the meta box that uses add_post_meta()
? Best practice advise is needed.
If you're going to send the whole $post->ID
and it will get the array of records, how can I detect the specific meta_key
set to be deleted?
Here is the code on github: https://github.com/fritzdenim/stec-events/blob/62d5c641622f75a610da09462260f09713f0abab/index.php