bp_activity_new_comment_notification_helper

Helper method to map action arguments to function parameters.

Description

bp_activity_new_comment_notification_helper( (int) $comment_id, (array) $params ); 

Parameters (2)

0. $comment_id (int)
ID of the comment being notified about.
1. $params (array)
Parameters to use with notification.

Usage

  1. if ( !function_exists( 'bp_activity_new_comment_notification_helper' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-activity/bp-activity-functions.php'; 
  3.  
  4. // ID of the comment being notified about. 
  5. $comment_id = -1; 
  6.  
  7. // Parameters to use with notification. 
  8. $params = array(); 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = bp_activity_new_comment_notification_helper($comment_id, $params); 
  12.  

Defined (1)

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

/bp-activity/bp-activity-functions.php  
  1. function bp_activity_new_comment_notification_helper( $comment_id, $params ) { 
  2. bp_activity_new_comment_notification( $comment_id, $params['user_id'], $params );