• Resolved christopherbeck

    (@christopherbeck)


    Hello,

    I’d like to change the message displayed below to a custom message:

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

    Can anyone tell if it would be possible to override this function (nua_default_notification_message) in my function.php?

    Thanks,

    Chris.

    https://www.ads-software.com/plugins/new-user-approve/

Viewing 1 replies (of 1 total)
  • To override that message, you would use the new_user_approve_registration_message_default filter.

    Something like this should work:

    /**
     * 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 = 'New message goes here.';
    
        return $message;
    }
    
    // modify the default registration message
    add_filter( 'nua_user_approve_registration_message_default', 'my_custom_registration_message' );
Viewing 1 replies (of 1 total)
  • The topic ‘Custom Message’ is closed to new replies.