I have a simple foreach loop and am putting together a timeline app. I'm using gravity forms to create / edit posts on the front end and am looking for a solution for a button or trigger that can delete a posts custom field (key & value) on click.
Pretty broad but along the lines of:
- target this post in foreach
- find meta key 'key'
- delete meta key 'key' and its value on click