xprofile_clear_profiledata_object_cache( BP_XProfile_ProfileData $data_obj )

Clear caches when a user’s updates a field data object.

Description

Parameters

$data_obj

(BP_XProfile_ProfileData) (Required) Field data object to delete.

Source

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

function xprofile_clear_profiledata_object_cache( $data_obj ) {
	wp_cache_delete( "{$data_obj->user_id}:{$data_obj->field_id}", 'bp_xprofile_data' );
}

Changelog

Changelog
Version Description
BuddyPress 2.0.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.