Leave a Reply

1 comment

  1. I’m not sure I follow you correctly, but you shouldn’t be editing core plugin files, instead you should make use of the available hooks and filters provided by WP-Members and for example either create your own plugin or more simply use your functions.php file to modify its behavior.

    add_action( 'wpmem_register_redirect', 'my_reg_redirect' );
    
    function my_reg_redirect()
    {
        // NOTE: this is an action hook that uses wp_redirect
        // wp_redirect must end with exit();
    
        wp_redirect( 'http://example.com/my-page/' );
    
        exit();
    }
    

    Also taken from this link,

    Suppose that you do not want users to have instant access to the site upon a successful registration, but rather, you want to manually validate that you have legitimate user. In these types of cases, WP-Members™ allows you to moderate registrations, requiring that the user be “activated” by an administrator prior to having access.

    It appears to be an option within the plugin itself to either moderate or not moderate registrations, the latter of the two will auto-login a user on successful registration while the former, if turned on, will require that the user activate their account via e-mail or that an admin approve their account.