bp_xprofile_get_profile_completion_transient_name( string $key, int $widget_id )

Return Transient name using logged in User ID.

Description

Parameters

$key

(Required) - Transient prefix key

$widget_id

(Required) - Widget id part of transient name string

Return

(string) $transient_name

Source

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

function bp_xprofile_get_profile_completion_transient_name( $key, $widget_id ) {

	$user_id        = get_current_user_id();
	$transient_name = $key . $user_id . $widget_id;

	return apply_filters( 'bp_xprofile_get_profile_completion_transient_name', $transient_name );

}

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.