Home › Forums › Front-end Issues › Front End and custom user meta › Reply To: Front End and custom user meta
If the fields show correctly, then all that needs to be done is to run the acf/save_post action during the save of the form.
You can do this by:
1. Find a hook that is run during the form save. This will not be an ACF action or filter, but specific to the form plugin or WP
2. Create a function and hook it into the above. In this function you need to run the acf/save_post action like this:
// $post_id to save against $post_id = 'user_' . $user_id; // update the post do_action('acf/save_post', $post_id);
Note. The ACF plugin already hooks into the user_register action and runs a save function similar to above…
I would think that this would already do the work for you but perhaps it is not firing in your setup?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
🤔 Curious about the ACF user experience? So are we! Help guide the evolution of ACF by taking part in our first ever Annual Survey and guarantee you’re represented in the results. https://t.co/0cgr9ZFOJ5— Advanced Custom Fields (@wp_acf) May 8, 2023
© 2023 Advanced Custom Fields.