qlstudio

4 Trees - Transient API debug bypass

Nov 28th, 2012
49
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // how to bypass transients in development environment ##
  2. if ( true === ( $transient_example = get_transient( 'transient_example' ) ) && WP_DEBUG === false ) {
  3.    
  4.     // transient is set and WP_DEBUG = false in wp-config ##
  5.     echo 'do stuff here..';
  6.  
  7. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×