bp_core_activation_signup_blog_notification_to

Filters the email that the notification is going to upon successful registration with blog.

Description

apply_filters( 'bp_core_activation_signup_blog_notification_to', (string) $value, (string) $tokens_domain, (string) $tokens_path, (string) $tokens_title, (string) $tokens_recipient_username, (string) $tokens_recipient_email, (string) $tokens_key_blog, (array) $array ); 

Parameters (8)

0. $value (string)
User email the notification is being sent to.
1. $tokens_domain (string)
The new blog domain.
2. $tokens_path (string)
The new blog path.
3. $tokens_title (string)
The tokens title.
4. $tokens_recipient_username (string)
The tokens recipient username.
5. $tokens_recipient_email (string)
The tokens recipient email.
6. $tokens_key_blog (string)
The activation key created in wpmu_signup_blog().
7. $array (array) => array()
Removed in 2.5; now an empty array.

Usage

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

Defined (1)

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

/bp-core/deprecated/2.5.php  
  1. $value = apply_filters( 'bp_core_activation_signup_blog_notification_to', $value, $tokens['domain'], $tokens['path'], $tokens['title'], $tokens['recipient.username'], $tokens['recipient.email'], $tokens['key_blog'], array() );