How to limit WordPress pages during updates?
Here is a little snipit of code that I used for my site while it was under construction <?php /* ROUGH METHOD OF DENY ACCESS */ $underconstruct = array(121, 46, 124, 97); if(!is_user_logged_in() && !in_array(get_the_ID(), $underconstruct)) { wp_redirect(get_permalink(121)); exit(); } ?> I put this at the top of my header.php. the $underconstruct array is the … Read more