Support

Account

Home Forums Front-end Issues Front End and custom user meta Reply To: Front End and custom user meta

  • Hi @richb

    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?

    Thanks
    E