bb_delete_transient

Delete a transient.

Description

bb_delete_transient( (string) $transient ); 

Parameters (1)

0. $transient (string)
Transient name. Expected to not be SQL-escaped

Usage

  1. if ( !function_exists( 'bb_delete_transient' ) ) { 
  2. require_once '/bp-forums/bbpress/bb-includes/functions.bb-meta.php'; 
  3.  
  4. // Transient name. Expected to not be SQL-escaped 
  5. $transient = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bb_delete_transient($transient); 
  9.  

Defined (1)

The function is defined in the following location(s).

/bp-forums/bbpress/bb-includes/functions.bb-meta.php  
  1. function bb_delete_transient( $transient ) 
  2. global $_bb_using_ext_object_cache, $bbdb; 
  3.  
  4. if ( $_bb_using_ext_object_cache ) { 
  5. return wp_cache_delete( $transient, 'transient' ); 
  6. } else { 
  7. $transient = '_transient_' . $bbdb->escape( $transient ); 
  8. return bb_delete_option( $transient );