Statistics: Posted by Bruce C — October 30th, 2011, 4:12 pm
Statistics: Posted by xorred — October 30th, 2011, 12:27 pm
Statistics: Posted by Cristián Lávaque — October 28th, 2011, 10:53 pm
function custom_dont_allow_wpadmin ()
{
if (strpos (realpath ($_SERVER["SCRIPT_FILENAME"]), 'wp-admin') && current_user_can('access_s2member_level0') && !current_user_can ('manage_options'))
{
header ('Location: ' . get_option ('siteurl'));
exit ();
}
}
add_action ('init', 'custom_dont_allow_wpadmin');
Statistics: Posted by Bruce C — October 28th, 2011, 6:44 pm
Statistics: Posted by Eduan — October 28th, 2011, 1:53 pm
Statistics: Posted by Cristián Lávaque — October 25th, 2011, 1:17 pm
Statistics: Posted by xorred — October 24th, 2011, 1:15 pm