bp_xprofile_delete_profile_completion_user_transient()

Function trigger when profile updated. Profile field added/updated/deleted.

Description

Deletes Profile Completion Transient here.

Source

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

function bp_xprofile_delete_profile_completion_user_transient() {
	// Delete logged in user all widgets transients from options table.
	$user_id               = get_current_user_id();
	$transient_name_prefix  = '%_transient_' . bp_core_get_profile_completion_key() . $user_id . '%';
	bp_core_delete_transient_query( $transient_name_prefix );
}

Changelog

Changelog
Version Description
BuddyBoss 1.4.9 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.