• Dear Ultimate Member Team,Firstly, thank you for making a genuinely awesome plugin.I am having some problems when a user registers on my website.

    Current Behaviour:
    A user is able to register with current settings. Following registration a user is put into the incorrect registration bucket. They are neither placed into the auto-approved bucket nor placed in the Pending Review bucket. They are put into the Users > All bucket where their role is set to “NONE” and their status is set to “EMPTY”.

    Desired Behavior:
    Following registration I would like a user to be put into the pending review bucket (where an admin can review the application), for their role to be set to “Subscriber” and for the correct custom message to display given a successful registration (There is currently no message displayed to the user, the page refreshes and the registration input fields are cleared)

    Please find my current general and UM settings below.

    General WP Settings
    wp-admin > Settings > Membership: Anyone can register (unchecked)

    wp-admin > Settings > New User Default Role: Subscriber

    Ultimate Member Settings
    wp-admin > Ultimate Member > Settings > Appearance Tab > Registration Form Sub Tab > Registration Default Role: Subscriber

    wp-admin > Ultimate Member > Forms > Default Registration > Registration Form > Customize this form > Apply custom settings to this form > Assign role to this form > Subscriber

    wp-admin > Ultimate Member > User Roles > Subscriber > Registration Options > Registration Status: Require Admin Review

    wp-admin > Ultimate Member > User Roles > Subscriber > Registration Options > Action to be taken after registration: Show Custom Message

    Any help would be greatly appreciated!

    Thanks

    • This topic was modified 5 years, 8 months ago by teamjh19.
    • This topic was modified 5 years, 8 months ago by teamjh19.
    • This topic was modified 5 years, 8 months ago by teamjh19.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @teamjh19,

    Do you have any other membership plugins installed?
    It looks like a conflict test with one of your plugins or your theme.
    Please do a quick conflict test so we can rule out conflicts with your theme or other plugins and see if this issue goes away.
    Here is the doc on how to do a conflict test if you are not sure how to do it.

    Regards.

    Thread Starter teamjh19

    (@teamjh19)

    Hi Ultimate Member Support,

    We do not have any membership plugins installed. I have disabled all plugins since since we started experiencing this issue and the problem persists. I have also tested it with a child theme installed – same outcome.

    I have created a custom plugin that tries to force set the new user’s role to “subscriber”. It runs the following code:

    add_action('um_after_new_user_register', 'custom_after_new_user_register', 20, 1);

    function custom_after_new_user_register($user_id) {
      $user = get_user_by('id', $user_id);
      if (!in_array('subscriber', $user->roles)) {
        $user->add_role('subscriber');
      }
    }

    The code doesn’t seem to work as the user’s role is still set to “none” in the Ultimate Member user overview dashboard. Please let me know if you have some additional code I can try or if you see an error with the above.

    Many thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Incorrect bucket behaviour after registering’ is closed to new replies.