bp_activity_follow_delete_follow_ids_object_cache( int $user_id, array|bool $ids )

Clear cached data for follow object when user is deleted.

Description

Parameters

$user_id

(Required) ID of user.

$ids

(Required) array of follow ids or false.

Source

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

function bp_activity_follow_delete_follow_ids_object_cache( $user_id, $ids ) {
	if ( ! empty( $ids ) ) {
		foreach ( $ids as $id ) {
			wp_cache_delete( $id, 'bp_activity_follow' );
		}
	}
}

Changelog

Changelog
Version Description
BuddyBoss 1.1.7 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.