bp_activity_post_type_updated

Fires after the updating of an activity item for a custom post type entry.

Description

do_action( 'bp_activity_post_type_updated', (WP_Post) $post, (BP_Activity_Activity) $activity, (object) $activity_post_object ); 

Parameters (3)

0. $post (WP_Post)
Post object.
1. $activity (BP_Activity_Activity)
Activity object.
2. $activity_post_object (object)
The post type tracking args object.

Usage

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

Defined (1)

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

/bp-activity/bp-activity-functions.php  
  1. do_action( 'bp_activity_post_type_updated', $post, $activity, $activity_post_object );