Revision: 39271
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 15, 2011 17:23 by WebPersonality
Initial Code
if ( is_user_logged_in() && is_admin() ) { global $current_user; get_currentuserinfo(); $user_info = get_userdata($current_user->ID); if ( $user_info->wp_user_level == 0 ) { header( 'Location: '.get_bloginfo('home').'/wp-login.php?redirect='.get_bloginfo('home').'/wp-admin/' ); } }
Initial URL
http://wpsnipp.com/index.php/admin/prevent-access-to-wpadmin/
Initial Description
Initial Title
Wordpress Prevent access to wp-admin – wpsnipp.com Wordpress code snippets for your blog
Initial Tags
wordpress
Initial Language
PHP