• Resolved dhilm001

    (@dhilm001)


    Hi,

    I can see you recently answered a question about how to change the custom message, as follows:

    “After you register, your request will be sent to the site administrator for approval. You will then receive an email with further instructions.”

    I would like to remove this message from the login screen completely. Would you mind letting me know the code and where to place it to achieve this?

    Many thanks for the great plugin!

    https://ww.wp.xz.cn/plugins/new-user-approve/

Viewing 2 replies - 1 through 2 (of 2 total)
  • You’d want to add this to your functions.php file in your theme or create a new plugin to accomplish this.

    /**
     * Modify the default notification message the user will see
     * after registering for an account.
     *
     * @param $message The default message.
     * @return string the updated message.
     */
    function my_custom_registration_message( $message ) {
        // here you can modify part of the message or
        // completely override it.
        $message = '';
    
        return $message;
    }
    
    // modify the default registration message
    add_filter( 'nua_user_approve_registration_message_default', 'my_custom_registration_message' );

    Good luck. Let me know how it goes.

    Thread Starter dhilm001

    (@dhilm001)

    This worked great – thankyou!!

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

The topic ‘Remove custom message’ is closed to new replies.