bp_groups_delete_group_delete_all_activity( int $group_id )

Delete all activity items related to a specific group.

Parameters Parameters


(int) (Required) ID of the group.

Source 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
		) );

Top ↑

Changelog Changelog

Version Description
1.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.