Create a gist now

Instantly share code, notes, and snippets.

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