bb_subscription_mail_title

For plugins.

Description

apply_filters( 'bb_subscription_mail_title', (string) $bb_get_option_name_topic_topic_title, (unknown) $post_id, (unknown) $topic_id ); 

Parameters (3)

0. $bb_get_option_name_topic_topic_title (string) => '[' . bb_get_option( 'name' ) . '] ' . $topic->topic_title
The bb get option name topic topic title.
1. $post_id (unknown)
The post id.
2. $topic_id (unknown)
The topic id.

Usage

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

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-posts.php  
  1. apply_filters( 'bb_subscription_mail_title', '[' . bb_get_option( 'name' ) . '] ' . $topic->topic_title, $post_id, $topic_id ),