• Resolved thedesignpeople

    (@thedesignpeople)


    Hi,
    I need to only allow admins to register users. I know that in the past from previous posts (a couple of years ago) that this was not possible, but wondering if there is now a way to do it without getting a You are already registered error.
    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @thedesignpeople

    You can enable the Register form for logged-in users with the following code snippet:
    add_filter( 'um_registration_for_loggedin_users', '__return_true' );

    You can add the code to your theme/child-theme’s functions.php file or use the Code Snippet plugin to run the code.

    Regards,

    Thread Starter thedesignpeople

    (@thedesignpeople)

    PERFECT!!! Thanks for that! Much appreciated!

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Thanks for letting us know.

    Regards,

    Thread Starter thedesignpeople

    (@thedesignpeople)

    I should also say just in case anyone has the same request, that I needed to make the registration page private (pages/quick edit) so that it didn’t show on the front end for non members.

    Thanks again!

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Thanks for letting us know.

    Regards,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Admin only registration of users’ is closed to new replies.