Support » Plugin: Ultimate Member – User Profile, User Registration, Login & Membership Plugin » Is it possible to give access to all users with the same domain

  • Resolved Muhammad Assane

    (@programmer4techybirds)


    Hello,

    I am using Ultimate Member plugin on my site and I wanted to know if it’s possible to give access to all users with the same domain.

    Example: I register in the site using testing@domain.com, so anyone that has @domain.com in their email can directly login without registering.

    So what I want is one person registers using a domain and all users with the same domain can directly login.

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

    (@champsupertramp)

    Hi @programmer4techybirds

    Unfortunately, it’s not possible and requires customization on your end. Let’s see if others in the forum have done something similar and share their solution here.

    Regards,

    Thread Starter Muhammad Assane

    (@programmer4techybirds)

    @champsupertramp Thanks for the quick reply.

    Another quick question, How do I get the list of registered users using code in functions.php not on the admin menu

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @programmer4techybirds

    You can try this code snippet to dump the registered users data:

    add_action("init","um_062221_get_approved_users");
    function um_062221_get_approved_users() {
        if( is_admin() ) return;
    
        $args = array(
            'number' => -1
        );
    
        $users = get_users($args);
    
        foreach ($users as $user) {
            $uid = $user->data->ID;
            um_fetch_user( $uid );
            echo um_user("user_email")."\n";
        }
    
    }

    Regards,

    Thread Starter Muhammad Assane

    (@programmer4techybirds)

    Thank you very much @champsupertramp

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Thanks for letting us know. I’m marking this as resolved now.

    Regards,

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