Skip to content

Instantly share code, notes, and snippets.

@augustoms
Forked from thefuxia/t5-force-log-in.php
Created May 4, 2013 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save augustoms/5518649 to your computer and use it in GitHub Desktop.
Save augustoms/5518649 to your computer and use it in GitHub Desktop.
<?php # -*- coding: utf-8 -*-
/**
* Plugin Name: T5 Force Log In
* Description: Grant access after log in only
* Plugin URI: http://toscho.de/?p=2207
* Version: 2012.08.28
* Author: Thomas Scholz
* Author URI: http://toscho.de
* License: MIT
* License URI: http://www.opensource.org/licenses/mit-license.php
*/
add_action( 'template_redirect', 'auth_redirect' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment