bp_members_clear_member_type_cache( int $user_id )
Clear the member_type cache for a user.
Description
Called when the user is deleted or marked as spam.
Parameters
- $user_id
-
(int) (Required) ID of the deleted user.
Source
File: bp-members/bp-members-cache.php
function bp_members_clear_member_type_cache( $user_id ) { wp_cache_delete( $user_id, 'bp_member_member_type' ); }
Changelog
Version | Description |
---|---|
BuddyPress 2.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.