How to get current post ID in Contact Form 7 wpcf7_before_send_mail hook action
I’m trying to handle the CF7 data before send and update the current post custom field using ACF function but I’m unable to get the current post ID the form is send from. I’ve also tried getting the ID from global $post variable and get_queried_object_id() but it didn’t work either. Any idea how can I … Read more