Jetpack dashboard menu capability hook
-
On Jetpack 2.0, the capability attribute for ‘add_menu_page’ is set to ‘read’, making it visible to even ‘subscriber’ users, this was set to ‘manage_options’ before the 2.0 update.
At the moment I’ve changed
$hook = add_menu_page( 'Jetpack', $title, 'read', 'jetpack', array( $this, 'admin_page' ), 'div' );
to:
$hook = add_menu_page( 'Jetpack', $title, 'manage_options', 'jetpack', array( $this, 'admin_page' ), 'div' );
On the jetpack.php file.
Does anyone can come up with way to hook a filter and change this without hacking the plugin files (as my ‘solution’ get over written when a new update is installed)Thanks!!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Jetpack dashboard menu capability hook’ is closed to new replies.