Fires after activity comments have been synced and posted as blog comments.


do_action( 'bp_blogs_sync_add_from_activity_comment', (int) $comment_id, (array) $args, (object) $parent_activity, (object) $user ); 

Parameters (4)

0. $comment_id (int)
The activity ID for the posted activity comment.
1. $args (array)
Array of args used for the comment syncing.
2. $parent_activity (object)
Parameters of the blog post parent activity item.
3. $user (object)
User data object for the blog comment.


To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'bp_blogs_sync_add_from_activity_comment', $comment_id, $args, $parent_activity, $user ); 
The following example is for adding a hook callback.
  1. // define the bp_blogs_sync_add_from_activity_comment callback 
  2. function action_bp_blogs_sync_add_from_activity_comment( $comment_id, $args, $parent_activity, $user ) { 
  3. // make action magic happen here... 
  4. }; 
  6. // add the action 
  7. add_action( 'bp_blogs_sync_add_from_activity_comment', 'action_bp_blogs_sync_add_from_activity_comment', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'bp_blogs_sync_add_from_activity_comment', 'action_bp_blogs_sync_add_from_activity_comment', 10, 4 ); 

Defined (1)

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

  1. do_action( 'bp_blogs_sync_add_from_activity_comment', $comment_id, $args, $parent_activity, $user );