Skip to:
Content
Pages
Categories
Search
Top
Bottom

Disable Automatic Account Activation and Manually Approve it


  • benedictbani
    Participant

    @benedictbani

    Hello, Please I would like to manually approve my BuddyPress registration requests and Disable Automatic Account Activation, and also change the registration message to [ Your membership account is awaiting approval by the site administrator ] am using WordPress 4.9.8, http://betalifes.com/, Please help out

Viewing 10 replies - 1 through 10 (of 10 total)

  • Prashant Singh
    Participant

    @prashantvatsh

    add_filter( 'bp_core_signup_send_activation_key', 'ps_disable_activation_email' );
    function ps_disable_activation_email() {
    	return false;
    }

    Please try this code.


    benedictbani
    Participant

    @benedictbani

    @prashantvatsh AM new with wordpress, can you pls tell me how to go about it.. where to add the code..


    Prashant Singh
    Participant

    @prashantvatsh

    https://wordpress.org/plugins/code-snippets/ Please add this plugin and then in snippets add a new snippet and paste the code.

    Thanks


    benedictbani
    Participant

    @benedictbani

    okay will try it out, will be right back to give you feed back


    benedictbani
    Participant

    @benedictbani

    @prashantvatsh thanks, the email ACTIVATION Stopped but how can i change this message [You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.] to this one message [ Your membership account is awaiting approval by the site administrator ] so my members wont be confused


    Prashant Singh
    Participant

    @prashantvatsh

    add_filter( 'gettext', 'ps_change_activation_message', 20, 3 );
    
    function ps_change_activation_message( $translated_text, $text, $domain ) {
    
        switch ( $translated_text ) {
            case 'You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.' :
                $translated_text = __( 'Your membership account is awaiting approval by the site administrator.', 'buddypress' );
                break;
        }
    
        return $translated_text;
    }

    Please add this snippet as well.

    Thanks


    benedictbani
    Participant

    @benedictbani

    @prashantvatsh thanks alot all the issues are fixed


    Prashant Singh
    Participant

    @prashantvatsh

    Welcome 🙂


    benedictbani
    Participant

    @benedictbani

    @prashantvatsh sorry for disturbing, but is they a way for my members to receive mail that i have approved their registration..


    Prashant Singh
    Participant

    @prashantvatsh

    Hi,

    You can use this plugin https://wordpress.org/plugins/bp-registration-options/ which allows moderation and members will be restricted to their own profile till when they are not approved. And after approval, a mail will be sent to them.

    Maybe this solution can help you with what you want to achieve.

    Thanks

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