bbp_notify_subscribers

Sends notification emails for new replies to subscribed topics.

Description

bbp_notify_subscribers( (int) $reply_id = 0, (int) $topic_id = 0, (int) $forum_id = 0, (constant) $anonymous_data = false, (int) $reply_author = 0 ); 

This function is deprecated. Please use: bbp_notify_topic_subscribers()

Parameters (5)

0. $reply_id — Optional. (int)
ID of the newly made reply
1. $topic_id — Optional. (int)
ID of the topic of the reply
2. $forum_id — Optional. (int)
ID of the forum of the reply
3. $anonymous_data — Optional. (constant) => false
Array of anonymous user data
4. $reply_author — Optional. (int)
ID of the topic author ID

Usage

  1. if ( !function_exists( 'bbp_notify_subscribers' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/common/functions.php'; 
  3.  
  4. // ID of the newly made reply 
  5. $reply_id = -1; 
  6.  
  7. // ID of the topic of the reply 
  8. $topic_id = -1; 
  9.  
  10. // ID of the forum of the reply 
  11. $forum_id = -1; 
  12.  
  13. // Array of anonymous user data 
  14. $anonymous_data = false; 
  15.  
  16. // ID of the topic author ID 
  17. $reply_author = -1; 
  18.  
  19. // NOTICE! Understand what this does before running. 
  20. $result = bbp_notify_subscribers($reply_id, $topic_id, $forum_id, $anonymous_data, $reply_author); 
  21.  

Defined (1)

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

/includes/common/functions.php  
  1. function bbp_notify_subscribers( $reply_id = 0, $topic_id = 0, $forum_id = 0, $anonymous_data = false, $reply_author = 0 ) { 
  2. return bbp_notify_topic_subscribers( $reply_id, $topic_id, $forum_id, $anonymous_data, $reply_author );