<content>

Filters the message that the notification uses upon successful registration without blog.

Description

apply_filters( '<content>', (string) $value, (string) $tokens_recipient_username, (string) $tokens_recipient_email, (string) $tokens_key, (array) $array ); 

Parameters (5)

0. $value (string)
The message to use.
1. $tokens_recipient_username (string)
The tokens recipient username.
2. $tokens_recipient_email (string)
The tokens recipient email.
3. $tokens_key (string)
The activation key created in wpmu_signup_blog().
4. $array (array) => array()
Removed in 2.5; now an empty array.

Usage

To run the hook, copy the example below.
  1. $value = apply_filters( '{$content}', $value, $tokens_recipient_username, $tokens_recipient_email, $tokens_key, $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 <content> callback 
  2. function filter_content( $value, $tokens_recipient_username, $tokens_recipient_email, $tokens_key, $array ) { 
  3. // make filter magic happen here... 
  4. return $value
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( "{$content}", 'filter_content', 10, 5 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( "{$content}", 'filter_content', 10, 5 ); 

Defined (1)

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

/bp-core/deprecated/2.5.php  
  1. $value = apply_filters( $registration_filters['content'], $value, $tokens['recipient.username'], $tokens['recipient.email'], $tokens['key'], array() );