scasquiov
Forum Replies Created
-
Forum: Plugins
In reply to: [Twitter Widget Pro] Twitter Widget Pro Still not UpdatingHi,
I’m also experiencing this issue. But the admin of the server where I have my wordpress blogs hosted is… me!
Any thoughts on how I can allow those lookback requests on my server? I’ve logged in through SSH and made a HTTP request from the machine to itself without any issue… so, maybe I’m experiencing an entirely different problem? (although with similar symptoms)
Thanks,
SandroForum: Plugins
In reply to: Not letting subscribers use the admin backofficeFor testing purposes I tried changing the PageRestrictPlugin I’m already using. The ideia is to make it also block the administration.
I’ve added the following:
//——————————————————-
function pagerestrict_admin_hook() {//…
add_action(‘admin_head’,’page_restrict_adminhead’);
}function page_restrict_adminhead() {
global $submenu, $menu;if(!current_user_can(‘level_10’)){
unset($menu[0]); // hide dashboard
unset($menu[35]); // hide Users or Profile
unset($submenu[‘profile.php’]);
}
}
//——————————————————-The menu is gone, which is great. However, the profile page and the dashboard remain acessible if I add “/wp-admin/profile.php” and “/wp-admin/index.php” in the addressbar. Is there a way to actually block these?
When using a “subscriber” account if I try to access “/wp-admin/edit.php” the following message is shown: “You do not have sufficient permissions to access this page”
This would be just the thing I’m looking for… Any thoughts on how to achieve this for profile and dashboard?Cheers!
Forum: Plugins
In reply to: Not letting subscribers use the admin backofficeOk, I think I’ll give it a shot then. I haven’t got any experience in writing plugins, but your snippet seems like a pretty good starting point, thanks!