Home Forums ACF PRO Frontend User Registration Form Reply To: Frontend User Registration Form

  • ACF can add fields to the user registration form, but as far as I know acf_form cannot be used to replace the user registration form, or at least I have not seen it done.

    But it should be possible using the idea here and using a custom acf/pre_save_post filter

    The main differences

    1) You would use something like ‘new_user’ as the post id in acf_form() and test for this value in the acf/pre_save_post filter

    2) Instead of creating a new post, you would create a new user, however that is done in WP… I don’t know, I’ve never done it.

    3) The post ID that you return from the acf/pre_save_post filter should be "user_{$user->ID}". This will tell acf to save the field values to the user instead of a post.