Last active
August 29, 2015 14:20
-
-
Save miziomon/5b89463238489ff01527 to your computer and use it in GitHub Desktop.
WordPress Template scaffolding for restricted are
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* | |
* Template Name: Restricted Area | |
* | |
*/ | |
if( !is_user_logged_in() ) { | |
wp_redirect( WP_HOME ); // redirect to home | |
exit; | |
} | |
get_header(); | |
?> | |
<div class="container"> | |
// your code | |
</div> | |
<?php get_footer(); ?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment