jmlapam

Untitled

May 3rd, 2013
62
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function jm_transient($content) {
  2. set_site_transient( 'time', $content, 60*12 );
  3. }
  4. // et plus loin dans le code
  5. if ( false === ( $var = get_site_transient( 'time' ) ) ) jm_transient($var);
RAW Paste Data