bp_groups_clear_user_group_cache_on_membership_save( BP_Groups_Member $member )

Clear caches on membership save.


Parameters Parameters

$member

(BP_Groups_Member) (Required) BP Groups Member instance.


Source Source

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

function bp_groups_clear_user_group_cache_on_membership_save( BP_Groups_Member $member ) {
	wp_cache_delete( $member->user_id, 'bp_groups_memberships_for_user' );
	wp_cache_delete( $member->id, 'bp_groups_memberships' );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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