bbp_activity_reply_create

The bbPress bbp activity reply create hook.

Description

apply_filters( 'bbp_activity_reply_create', (unknown) $activity_text, (unknown) $user_id, (unknown) $reply_id, (unknown) $topic_id ); 

Parameters (4)

0. $activity_text (unknown)
The activity text.
1. $user_id (unknown)
The user id.
2. $reply_id (unknown)
The reply id.
3. $topic_id (unknown)
The topic id.

Usage

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

Defined (1)

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

/includes/extend/buddypress/activity.php  
  1. $activity_action = apply_filters( 'bbp_activity_reply_create', $activity_text, $user_id, $reply_id, $topic_id );