Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Nov 20th, 2018 130 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. <?php
  2. add_filter( 'the_content', 'wds_enable_dev_mode' );
  3. function wds_enable_dev_mode() {
  4.  
  5.     // Only alter the content on the donate page, and only if the devmode queryvar is not set to true
  6.     if ( is_page('donate') && ( !isset($_GET['devmode']) || 'true' != $_GET['devmode'] )
  7.         return '<h2>System Maintenance</h2><p>This page is currently undergoing maintenance. Sorry for the inconvenience. Please check back in an hour.</p>';
  8.  
  9.     // Otherwise, return content as normal
  10.     return $content;
  11. }}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top