bp_activity_delete

  • do_action( 'bp_activity_delete', $args )

    Source Reference:

    • Component: BuddyPress:: bp-activity
      File: /bp-activity/bp-activity-functions.php :: Trac Source Line: 1061
      	do_action( 'bp_before_activity_delete', $args );
      
      	$latest_update = bp_get_user_meta( $user_id, 'bp_latest_update', true );
      	if ( !empty( $latest_update ) ) {
      		if ( in_array( (int)$latest_update['id'], (array)$activity_ids_deleted ) )
      			bp_delete_user_meta( $user_id, 'bp_latest_update' );
      	}
      
      	do_action( 'bp_activity_delete', $args );
      	do_action( 'bp_activity_deleted_activities', $activity_ids_deleted );
      
      	wp_cache_delete( 'bp_activity_sitewide_front', 'bp' );
      
      	return true;
      }
      
      	/**
      	 * Delete an activity item by activity id
      	 *
      

Comments are closed.