bp_activity_delete_by_item_id

Delete an activity item by activity id.

Description

bp_activity_delete_by_item_id( (string) $args = '' ); 

You should use bp_activity_delete() instead.

Parameters (1)

0. $args — Optional. (string) => ''
See BP_Activity_Activity::get for a description of accepted arguments.

Usage

  1. if ( !function_exists( 'bp_activity_delete_by_item_id' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-activity/bp-activity-functions.php'; 
  3.  
  4. // See BP_Activity_Activity::get for a 
  5. // description of accepted arguments. 
  6. $args = ''; 
  7.  
  8. // NOTICE! Understand what this does before running. 
  9. $result = bp_activity_delete_by_item_id($args); 
  10.  

Defined (1)

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

/bp-activity/bp-activity-functions.php  
  1. function bp_activity_delete_by_item_id( $args = '' ) { 
  2.  
  3. $r = bp_parse_args( $args, array( 
  4. 'item_id' => false,  
  5. 'component' => false,  
  6. 'type' => false,  
  7. 'user_id' => false,  
  8. 'secondary_item_id' => false 
  9. ) ); 
  10.  
  11. return bp_activity_delete( $r );