welcome_user_msg_filter

Ensure that the welcome message is not empty.

Description

(string) welcome_user_msg_filter( (string) $text ); 

Currently unused.

Returns (string)

Parameters (1)

0. $text (string)
The text.

Usage

  1. if ( !function_exists( 'welcome_user_msg_filter' ) ) { 
  2. require_once ABSPATH . WPINC . '/ms-functions.php'; 
  3.  
  4. // The text. 
  5. $text = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = welcome_user_msg_filter($text); 
  9.  

Defined (1)

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

/wp-includes/ms-functions.php  
  1. function welcome_user_msg_filter( $text ) { 
  2. if ( !$text ) { 
  3. remove_filter( 'site_option_welcome_user_email', 'welcome_user_msg_filter' ); 
  4.  
  5. /** translators: Do not translate USERNAME, PASSWORD, LOGINLINK, SITE_NAME: those are placeholders. */ 
  6. $text = __( 'Howdy USERNAME,  
  7.  
  8. Your new account is set up. 
  9.  
  10. You can log in with the following information: 
  11. Username: USERNAME 
  12. Password: PASSWORD 
  13. LOGINLINK 
  14.  
  15. Thanks! 
  16.  
  17. --The Team @ SITE_NAME' ); 
  18. update_site_option( 'welcome_user_email', $text ); 
  19. return $text;