Skip to content

Instantly share code, notes, and snippets.

Last active Aug 29, 2015
What would you like to do?
WordPress Template scaffolding for restricted are
* Template Name: Restricted Area
if( !is_user_logged_in() ) {
wp_redirect( WP_HOME ); // redirect to home
<div class="container">
// your code
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment