bp_groups_delete_group_delete_all_activity( int $group_id )
Delete all activity items related to a specific group.
Description
Parameters
- $group_id
-
(Required) ID of the group.
Source
File: bp-groups/bp-groups-activity.php
function bp_groups_delete_group_delete_all_activity( $group_id ) { if ( bp_is_active( 'activity' ) ) { bp_activity_delete_by_item_id( array( 'item_id' => $group_id, 'component' => buddypress()->groups->id ) ); } }
Changelog
Version | Description |
---|---|
BuddyPress 1.9.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.