rt_comment_notifications_callback

This is callback function for rt_like_notifier component dont call this callback method manually.

Description

rt_comment_notifications_callback( (int) $action, (int) $post_id, (int) $initiator_id, (number) $total_items, (string) $format = 'string' ); 

Parameters (5)

0. $action (int)
Action of componamt for notification
1. $post_id (int)
ID of a post to notification
2. $initiator_id (int)
Secondary_item_id used in bp_notifications_add_notification
3. $total_items (number)
Number of notification for same component
4. $format — Optional. (string) => 'string'
String or array

Usage

  1. if ( !function_exists( 'rt_comment_notifications_callback' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'rtmedia-for-wordpress-buddypress-and-bbpress/app/helper/RTMediaCommentNotification.php'; 
  3.  
  4. // action of componamt for notification 
  5. $action = -1; 
  6.  
  7. // ID of a post to notification 
  8. $post_id = -1; 
  9.  
  10. // secondary_item_id used in 'bp_notifications_add_notification' 
  11. $initiator_id = -1; 
  12.  
  13. // number of notification for same component 
  14. $total_items = null; 
  15.  
  16. // string or array 
  17. $format = 'string'; 
  18.  
  19. // NOTICE! Understand what this does before running. 
  20. $result = rt_comment_notifications_callback($action, $post_id, $initiator_id, $total_items, $format); 
  21.  

Defined (1)

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

/app/helper/RTMediaCommentNotification.php  
  1. function rt_comment_notifications_callback( $action, $post_id, $initiator_id, $total_items, $format = 'string' ) { 
  2. $params = array( 
  3. 'action' => $action,  
  4. 'post_id' => $post_id,  
  5. 'initiator_id' => $initiator_id,  
  6. 'total_items' => $total_items,  
  7. 'format' => $format,  
  8. ); 
  9.  
  10. return apply_filters( 'rtmedia_comment_notifications', $params );