cambridgeict
Forum Replies Created
-
@siteworkscollab – Yes, that’s exactly what we’re getting. We attempted the fix shared by @shabti but updating the acf/save_post hook to acf_frontend/save_post didn’t resolve our issue.
@shabti – Are you able to provide a further update on this issue?
We’re updating an existing post. Essentially the function takes the data from the ACF frontend form and adds it programatically to an existing repeater. The custom function was working with no issues prior to version 3.0 using the acf/save_post hook.
Thanks in advance
Hi Shabti
Thanks for coming back to us. We’ve tried that but unfortunately we’re not having much joy with that updated hook. Just to make sure we’ve got it right, please see below example code.
add_action( 'acf_frontend/save_post', 'custom_save_function', 10, 2 ); function custom_save_function( $form, $post_id ) { // Do something }We’ve added an error_log() line to our existing function to see if it’s firing but when submitting the frontend form we don’t get anything (form added using Elementor)
Thanks in advance!