Hello Support,
Can you please tell me how to delete the data from post meta table as per post id from front end. we have used the wp functions delete_post_meta(). that function delete the data from database but empty field is show on frontend form.
We are waiting your valuable response.
Thanks!!
Hi @adi-aman
To do that, you can use the update_field() function to set the value to empty. It should be something like this:
update_field('repeater_field_name', array(), 99);
Where “99” is the post ID where the custom field is assigned.
I hope this helps. If you have any other questions, feel free to ask me again 🙂