[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-forums/bbpress/bb-includes/backpress/ -> functions.bp-options.php (source)

   1  <?php
   2  
   3  function backpress_get_option( $option )
   4  {
   5      if ( !class_exists('BP_Options') ) {
   6          return;
   7      }
   8  
   9      return BP_Options::get( $option );
  10  }
  11  
  12  function backpress_add_option( $option, $value )
  13  {
  14      if ( !class_exists('BP_Options') ) {
  15          return;
  16      }
  17  
  18      return BP_Options::add( $option, $value );
  19  }
  20  
  21  function backpress_update_option( $option, $value )
  22  {
  23      if ( !class_exists('BP_Options') ) {
  24          return;
  25      }
  26  
  27      return BP_Options::update( $option, $value );
  28  }
  29  
  30  function backpress_delete_option( $option )
  31  {
  32      if ( !class_exists('BP_Options') ) {
  33          return;
  34      }
  35  
  36      return BP_Options::delete( $option );
  37  }
  38  
  39  function backpress_get_transient( $transient )
  40  {
  41      if ( !class_exists('BP_Transients') ) {
  42          return;
  43      }
  44  
  45      return BP_Transients::get( $transient );
  46  }
  47  
  48  function backpress_set_transient( $transient, $value, $expiration = 0 )
  49  {
  50      if ( !class_exists('BP_Transients') ) {
  51          return;
  52      }
  53  
  54      return BP_Transients::set( $transient, $value, $expiration );
  55  }
  56  
  57  function backpress_delete_transient( $transient )
  58  {
  59      if ( !class_exists('BP_Transients') ) {
  60          return;
  61      }
  62  
  63      return BP_Transients::delete( $transient );
  64  }


Generated: Fri Nov 22 01:00:56 2024 Cross-referenced by PHPXref 0.7.1