I hereby claim:
- I am deegs on github.
- I am danegan (https://keybase.io/danegan) on keybase.
- I have a public key whose fingerprint is 704E CA12 E7D2 A319 4662 CFC0 B2A5 597E 5580 E6AD
To claim this, I am signing this object:
Verifying that +danegan is my blockchain ID. https://onename.com/danegan |
I hereby claim:
To claim this, I am signing this object:
/*-----------------------------------------------------------------------------------*/ | |
/* Don't let non-admin users access wp-admin. | |
/*-----------------------------------------------------------------------------------*/ | |
add_action( 'init', 'blockusers_init' ); | |
function blockusers_init() { | |
if ( is_admin() && ! current_user_can( 'administrator' ) ) { | |
wp_redirect( home_url() ); | |
exit; | |
} | |
} |