bp_media_remove_all_user_object_cache_data( int $user_id )

Clear a user’s cached media count.

Description

Parameters

$user_id

(Required) ID of the user deleted.

Source

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

function bp_media_remove_all_user_object_cache_data( $user_id ) {
	wp_cache_delete( 'bp_total_media_for_user_' . $user_id, 'bp' );
	wp_cache_delete( 'bp_total_group_media_for_user_' . $user_id, 'bp' );
}

Changelog

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