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

  1. if ( !function_exists( 'admin_created_user_email' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/user.php'; 
  3.  
  4. // The text. 
  5. $text = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = admin_created_user_email($text); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/user.php  
  1. function admin_created_user_email( $text ) { 
  2. $roles = get_editable_roles(); 
  3. $role = $roles[ $_REQUEST['role'] ]; 
  4. /** translators: 1: Site name, 2: site URL, 3: role */ 
  5. return sprintf( __( 'Hi,  
  6. You\'ve been invited to join \'%1$s\' at 
  7. %2$s with the role of %3$s. 
  8. If you do not want to join this site please ignore 
  9. this email. This invitation will expire in a few days. 
  10.  
  11. Please click the following link to activate your user account: 
  12. %%s' ), get_bloginfo( 'name' ), home_url(), wp_specialchars_decode( translate_user_role( $role['name'] ) ) );