bp_activity_posted_update

Fires at the end of an activity post update, before returning the updated activity item ID.

Description

do_action( 'bp_activity_posted_update', (string) $r_content, (int) $r_user_id, (int) $activity_id ); 

Parameters (3)

0. $r_content (string)
Content of the activity post update.
1. $r_user_id (int)
ID of the user posting the activity update.
2. $activity_id (int)
ID of the activity item being updated.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'bp_activity_posted_update', $r_content, $r_user_id, $activity_id ); 
The following example is for adding a hook callback.
  1. // define the bp_activity_posted_update callback 
  2. function action_bp_activity_posted_update( $r_content, $r_user_id, $activity_id ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'bp_activity_posted_update', 'action_bp_activity_posted_update', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'bp_activity_posted_update', 'action_bp_activity_posted_update', 10, 3 ); 

Defined (1)

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

/bp-activity/bp-activity-functions.php  
  1. do_action( 'bp_activity_posted_update', $r['content'], $r['user_id'], $activity_id );