• Resolved internetzer22

    (@internetzer22)


    I have fluentform as a third-party user-registration plugin. I want to run a hook in my functions.php triggered by the submit button that assigns the new created user to a “default” profilegrid group. What type of function/hook can I use for it?

    Best,
    Christian

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author ProfileGrid Support

    (@profilegrid0)

    Hello @internetzer22,

    You can use the following hook to assign a group upon user registration on your WordPress site:

    add_action( ‘user_register’, ‘update_user_group’, 10, 1 );

    function update_user_group( $user_id )
    {
    $pmrequests = new PM_request;
    $group_id = 1;
    $pmrequests->profile_magic_join_group_fun($user_id,$group_id,’open’);
    }

    Please replace group_id ?with your site’s default group ID as needed.
    I hope this helps, let us know?if you have any other questions.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.