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

    (@yithemes)

    yes,
    you can use the filter ‘ywsl_new_user_role’
    For example, you can add in the file functions.php this code

    add_filter('ywsl_new_user_role', 'ywsl_new_user_role');
    function ywsl_new_user_role( $role ){
      return 'your_custom_role';
    }

    Hi,

    I added this to my child themes functions.php file but for some reason it is not working. All new users gets ‘customer’ role.

    Any help?

    • This reply was modified 8 years, 2 months ago by irpe.

    It is working for me. Thanks Mr. Author

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Assign different user role to the new sign-in’ is closed to new replies.