admin_created_user_email
The WordPress Core admin created user email function.
Description
(string) admin_created_user_email( (string) $text );
Returns (string)
Parameters (1)
- 0. $text (string)
- The text.
Usage
if ( !function_exists( 'admin_created_user_email' ) ) { require_once ABSPATH . '/wp-admin/includes/user.php'; } // The text. $text = ''; // NOTICE! Understand what this does before running. $result = admin_created_user_email($text);
Defined (1)
The function is defined in the following location(s).
- /wp-admin/includes/user.php
- 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'] ) ) );
- }