BP_Xprofile_Profile_Completion_Widget::delete_pc_loggedin_transient()
Function trigger when profile updated. Profile field added/updated/deleted.
Description
Deletes Profile Completion Transient here.
Source
File: bp-xprofile/classes/class-bp-xprofile-profile-completion-widget.php
function delete_pc_loggedin_transient() { // Delete logged in user all widgets transients from options table. $user_id = get_current_user_id(); $transient_name_prefix = '%_transient_' . $this->transient_key . $user_id . '%'; $this->delete_transient_query( $transient_name_prefix ); }
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.