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

    (@profilegrid0)

    Helllo @henrydouglas,

    We checked the screenshot shared by you and it seems like the group is not assigned to that user which is not appearing at front end. In order to display a user at front end, group should be assigned to that user. Please assign the group to user and then check.

    Let us know if you still face any issues.

    Thread Starter Henry Douglas

    (@henrydouglas)

    Hello friend. Thanks for the answer.

    But your solution has a problem: Every time a user registers I will have to manually assign him to a group. Is there a way for a user to be automatically assigned to a group at the time of registration?

    Remembering that this project requires the use of the Woocommerce form to registration.

    Thanks.

    Plugin Author ProfileGrid Support

    (@profilegrid0)

    Hello @henrydougla,

    You can add the following code to your site’s theme functions.php file:

    add_action( ‘user_register’, ‘update_user_group’, 10, 1 );
    function update_user_group( $user_id ) 

    {    

     $pmrequests = new PM_request; 

     $pmrequests->profile_magic_join_group_fun($user_id ,’1,’open’); 

      }

    In the function profile_magic_join_group_fun, the parameters are as follows: ‘1’ stands for group ID, and ‘open’ stands for the group type. You can replace the group ID with your group ID.

    I hope this helps. Let us know if you have any other questions.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘display all users registered on the site’ is closed to new replies.