Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Restrict user blogs (tools, pages, themes)


peterverkooijen
Participant

@peterverkooijen

No. Here\’s some code from the plugin:

‘/* Hide the Dashboard link (2.5+) and the Tools menu (2.7) */

function wphd_hide_dashboard() {

global $menu, $current_user;

if (!current_user_can(‘edit_posts’)) {

if (0 <= wphd_hide_dashboard_version(‘2.6’)) {

unset($menu[0]);

} else if (0 >= wphd_hide_dashboard_version(‘2.7’)) {

unset($menu[0]);

unset($menu[4]);

unset($menu[55]);

}

}

}

I\’d remove \’unset($menu[4]);\’ and \’55\’ and see what happens. Someone who better understands programming may be able do add/edit this to get what you want.

The plugin is from Kim Parsell. Perhaps you can convince her to expand it and make it more modular.

Skip to toolbar