welcome_user_msg_filter

The timeline below displays how wordpress function welcome_user_msg_filter has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.1

/**
 * Ensures that the welcome message is not empty. Currently unused.
 *
 * @since MU (3.0.0)
 *
 * @param string $text
 * @return string
 */
function welcome_user_msg_filter($text)
{
    if (!$text) {
        remove_filter('site_option_welcome_user_email', 'welcome_user_msg_filter');
        /* translators: Do not translate USERNAME, PASSWORD, LOGINLINK, SITE_NAME: those are placeholders. */
        $text = __('Howdy USERNAME,

Your new account is set up.

You can log in with the following information:
Username: USERNAME
Password: PASSWORD
LOGINLINK

Thanks!

--The Team @ SITE_NAME');
        update_site_option('welcome_user_email', $text);
    }
    return $text;
}

WordPress Version: 4.9

/**
 * Ensure that the welcome message is not empty. Currently unused.
 *
 * @since MU (3.0.0)
 *
 * @param string $text
 * @return string
 */
function welcome_user_msg_filter($text)
{
    if (!$text) {
        remove_filter('site_option_welcome_user_email', 'welcome_user_msg_filter');
        /* translators: Do not translate USERNAME, PASSWORD, LOGINLINK, SITE_NAME: those are placeholders. */
        $text = __('Howdy USERNAME,

Your new account is set up.

You can log in with the following information:
Username: USERNAME
Password: PASSWORD
LOGINLINK

Thanks!

--The Team @ SITE_NAME');
        update_site_option('welcome_user_email', $text);
    }
    return $text;
}

WordPress Version: 4.3

/**
 * Ensure that the welcome message is not empty. Currently unused.
 *
 * @since MU
 *
 * @param string $text
 * @return string
 */
function welcome_user_msg_filter($text)
{
    if (!$text) {
        remove_filter('site_option_welcome_user_email', 'welcome_user_msg_filter');
        /* translators: Do not translate USERNAME, PASSWORD, LOGINLINK, SITE_NAME: those are placeholders. */
        $text = __('Howdy USERNAME,

Your new account is set up.

You can log in with the following information:
Username: USERNAME
Password: PASSWORD
LOGINLINK

Thanks!

--The Team @ SITE_NAME');
        update_site_option('welcome_user_email', $text);
    }
    return $text;
}

WordPress Version: 4.2

/**
 * Ensure that the welcome message is not empty. Currently unused.
 *
 * @since MU
 *
 * @param string $text
 * @return string
 */
function welcome_user_msg_filter($text)
{
    if (!$text) {
        remove_filter('site_option_welcome_user_email', 'welcome_user_msg_filter');
        $text = __('Howdy USERNAME,

Your new account is set up.

You can log in with the following information:
Username: USERNAME
Password: PASSWORD
LOGINLINK

Thanks!

--The Team @ SITE_NAME');
        update_site_option('welcome_user_email', $text);
    }
    return $text;
}

WordPress Version: 3.7

/**
 * Ensure that the welcome message is not empty. Currently unused.
 *
 * @since MU
 *
 * @param string $text
 * @return string
 */
function welcome_user_msg_filter($text)
{
    if (!$text) {
        remove_filter('site_option_welcome_user_email', 'welcome_user_msg_filter');
        $text = __('Dear User,

Your new account is set up.

You can log in with the following information:
Username: USERNAME
Password: PASSWORD
LOGINLINK

Thanks!

--The Team @ SITE_NAME');
        update_site_option('welcome_user_email', $text);
    }
    return $text;
}