/bp-forums/bbpress/bb-includes/backpress/functions.bp-options.php

  1. <?php 
  2.  
  3. function backpress_get_option( $option ) 
  4. if ( !class_exists('BP_Options') ) { 
  5. return; 
  6.  
  7. return BP_Options::get( $option ); 
  8.  
  9. function backpress_add_option( $option, $value ) 
  10. if ( !class_exists('BP_Options') ) { 
  11. return; 
  12.  
  13. return BP_Options::add( $option, $value ); 
  14.  
  15. function backpress_update_option( $option, $value ) 
  16. if ( !class_exists('BP_Options') ) { 
  17. return; 
  18.  
  19. return BP_Options::update( $option, $value ); 
  20.  
  21. function backpress_delete_option( $option ) 
  22. if ( !class_exists('BP_Options') ) { 
  23. return; 
  24.  
  25. return BP_Options::delete( $option ); 
  26.  
  27. function backpress_get_transient( $transient ) 
  28. if ( !class_exists('BP_Transients') ) { 
  29. return; 
  30.  
  31. return BP_Transients::get( $transient ); 
  32.  
  33. function backpress_set_transient( $transient, $value, $expiration = 0 ) 
  34. if ( !class_exists('BP_Transients') ) { 
  35. return; 
  36.  
  37. return BP_Transients::set( $transient, $value, $expiration ); 
  38.  
  39. function backpress_delete_transient( $transient ) 
  40. if ( !class_exists('BP_Transients') ) { 
  41. return; 
  42.  
  43. return BP_Transients::delete( $transient ); 
.