bbp_subscription_mail_title

The WordPress Core bbp subscription mail title hook.

Description

add_filter( 'bbp_subscription_mail_title', (string) $ass_bbp_add_topic_subscribers_filter, (int) $int ); 

Parameters (2)

0. $ass_bbp_add_topic_subscribers_filter (string) => 'ass_bbp_add_topic_subscribers_filter'
The ass bbp add topic subscribers filter.
1. $int (int) => 99
The int.

Usage

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

Defined (1)

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

/screen-bbpress.php  
  1. add_filter( 'bbp_subscription_mail_title', 'ass_bbp_add_topic_subscribers_filter', 99 );