wpmu_signup_blog_notification

Filters whether to bypass the new site email notification.

Description

apply_filters( 'wpmu_signup_blog_notification', (string|bool) $domain, (string) $path, (string) $title, (string) $user_login, (string) $user_email, (string) $key, (array) $meta ); 

Parameters (7)

0. $domain (string|bool)
Site domain.
1. $path (string)
Site path.
2. $title (string)
Site title.
3. $user_login (string)
User login name.
4. $user_email (string)
User email address.
5. $key (string)
Activation key created in wpmu_signup_blog().
6. $meta (array)
By default, contains the requested privacy setting and lang_id.

Usage

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

Defined (1)

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

/wp-includes/ms-functions.php  
  1. if ( ! apply_filters( 'wpmu_signup_blog_notification', $domain, $path, $title, $user_login, $user_email, $key, $meta ) ) {