admin_created_user_email

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

WordPress Version: 6.1

/**
 * @since MU (3.0.0)
 *
 * @param string $text
 * @return string
 */
function admin_created_user_email($text)
{
    $roles = get_editable_roles();
    $role = $roles[$_REQUEST['role']];
    if ('' !== get_bloginfo('name')) {
        $site_title = wp_specialchars_decode(get_bloginfo('name'), ENT_QUOTES);
    } else {
        $site_title = parse_url(home_url(), PHP_URL_HOST);
    }
    return sprintf(
        /* translators: 1: Site title, 2: Site URL, 3: User role. */
        __('Hi,
You\'ve been invited to join \'%1$s\' at
%2$s with the role of %3$s.
If you do not want to join this site please ignore
this email. This invitation will expire in a few days.

Please click the following link to activate your user account:
%%s'),
        $site_title,
        home_url(),
        wp_specialchars_decode(translate_user_role($role['name']))
    );
}

WordPress Version: 5.3

/**
 * @since MU (3.0.0)
 *
 * @param string $text
 * @return string
 */
function admin_created_user_email($text)
{
    $roles = get_editable_roles();
    $role = $roles[$_REQUEST['role']];
    return sprintf(
        /* translators: 1: Site title, 2: Site URL, 3: User role. */
        __('Hi,
You\'ve been invited to join \'%1$s\' at
%2$s with the role of %3$s.
If you do not want to join this site please ignore
this email. This invitation will expire in a few days.

Please click the following link to activate your user account:
%%s'),
        wp_specialchars_decode(get_bloginfo('name'), ENT_QUOTES),
        home_url(),
        wp_specialchars_decode(translate_user_role($role['name']))
    );
}

WordPress Version: 5.1

/**
 * @param string $text
 * @return string
 */
function admin_created_user_email($text)
{
    $roles = get_editable_roles();
    $role = $roles[$_REQUEST['role']];
    /* translators: 1: site name, 2: site URL, 3: role */
    return sprintf(__('Hi,
You\'ve been invited to join \'%1$s\' at
%2$s with the role of %3$s.
If you do not want to join this site please ignore
this email. This invitation will expire in a few days.

Please click the following link to activate your user account:
%%s'), wp_specialchars_decode(get_bloginfo('name'), ENT_QUOTES), home_url(), wp_specialchars_decode(translate_user_role($role['name'])));
}

WordPress Version: 4.8

/**
 *
 * @param string $text
 * @return string
 */
function admin_created_user_email($text)
{
    $roles = get_editable_roles();
    $role = $roles[$_REQUEST['role']];
    /* translators: 1: Site name, 2: site URL, 3: role */
    return sprintf(__('Hi,
You\'ve been invited to join \'%1$s\' at
%2$s with the role of %3$s.
If you do not want to join this site please ignore
this email. This invitation will expire in a few days.

Please click the following link to activate your user account:
%%s'), wp_specialchars_decode(get_bloginfo('name'), ENT_QUOTES), home_url(), wp_specialchars_decode(translate_user_role($role['name'])));
}

WordPress Version: 4.3

/**
 *
 * @param string $text
 * @return string
 */
function admin_created_user_email($text)
{
    $roles = get_editable_roles();
    $role = $roles[$_REQUEST['role']];
    /* translators: 1: Site name, 2: site URL, 3: role */
    return sprintf(__('Hi,
You\'ve been invited to join \'%1$s\' at
%2$s with the role of %3$s.
If you do not want to join this site please ignore
this email. This invitation will expire in a few days.

Please click the following link to activate your user account:
%%s'), get_bloginfo('name'), home_url(), wp_specialchars_decode(translate_user_role($role['name'])));
}

WordPress Version: 3.7

function admin_created_user_email($text)
{
    $roles = get_editable_roles();
    $role = $roles[$_REQUEST['role']];
    /* translators: 1: Site name, 2: site URL, 3: role */
    return sprintf(__('Hi,
You\'ve been invited to join \'%1$s\' at
%2$s with the role of %3$s.
If you do not want to join this site please ignore
this email. This invitation will expire in a few days.

Please click the following link to activate your user account:
%%s'), get_bloginfo('name'), home_url(), wp_specialchars_decode(translate_user_role($role['name'])));
}