wpmu_welcome_user_notification

The WordPress Core wpmu welcome user notification hook.

Description

add_filter( 'wpmu_welcome_user_notification', (string) $return_false ); 

Parameters (1)

0. $return_false (string) => '__return_false'
The return false.

Usage

To run the hook, copy the example below.
  1. $return_false = apply_filters( 'wpmu_welcome_user_notification', $return_false ); 
  2.  
  3. if ( !empty( $return_false ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the wpmu_welcome_user_notification callback 
  2. function filter_wpmu_welcome_user_notification( $return_false ) { 
  3. // make filter magic happen here... 
  4. return $return_false
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'wpmu_welcome_user_notification', 'filter_wpmu_welcome_user_notification', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'wpmu_welcome_user_notification', 'filter_wpmu_welcome_user_notification', 10, 1 ); 

Defined (2)

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

/wp-admin/user-new.php  
  1. add_filter( 'wpmu_welcome_user_notification', '__return_false' ); // Disable welcome email 
/wp-includes/ms-functions.php  
  1. if ( ! apply_filters( 'wpmu_welcome_user_notification', $user_id, $password, $meta ) )