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

5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
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.