Advertisement
qlstudio

4 Trees - Transient API debug bypass

Nov 28th, 2012
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement