xprofile_clear_profiledata_object_cache( BP_XProfile_ProfileData $data_obj )

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


Parameters Parameters

$data_obj

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


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

Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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