bp_members_clear_member_type_cache( int $user_id )

Clear the member_type cache for a user.


Description Description

Called when the user is deleted or marked as spam.


Top ↑

Parameters Parameters

$user_id

(int) (Required) ID of the deleted user.


Source 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' );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.