bp_activity_clear_cache_for_deleted_activity( array $deleted_ids )

Clear cached data for deleted activity items.

Description

Parameters

$deleted_ids

(array) (Required) IDs of deleted activity items.

Source

File: bp-activity/bp-activity-cache.php

function bp_activity_clear_cache_for_deleted_activity( $deleted_ids ) {
	foreach ( (array) $deleted_ids as $deleted_id ) {
		wp_cache_delete( $deleted_id, 'bp_activity' );
	}
}

Changelog

Changelog
Version Description
BuddyPress 2.0.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.