bp_document_remove_all_user_object_cache_data( int $user_id )

Clear a user’s cached document count.

Description

Parameters

$user_id

(Required) ID of the user deleted.

Source

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

function bp_document_remove_all_user_object_cache_data( $user_id ) {
	wp_cache_delete( 'bp_total_document_for_user_' . $user_id, 'bp' );
}

Changelog

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