bp_core_delete_transient_query( type $transient_name_prefix )

Function deletes Transient based on the transient name specified.

Description

Parameters

$transient_name_prefix

(Required) - transient name prefix to save user progresss for profile completion module

Source

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

function bp_core_delete_transient_query( $transient_name_prefix ) {
	global $wpdb;
	$sql = $wpdb->prepare(
			"SELECT `option_name` FROM {$wpdb->options} WHERE option_name LIKE '%s' ",
			$transient_name_prefix
	);

	$keys = $wpdb->get_col( $sql );

	if ( ! empty( $keys ) ) {
		foreach ( $keys as $transient ) {
			delete_transient( str_replace( '_transient_', '', $transient ) );
		}
	}
}

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.