Hide Pods From WP Admin Panel

0

Is there a way to hide Pods from the WP Admin panel?

I mean, completely hidden. Doesn't show up under the plugins list or in the admin panel's navigation.

Our client's client will be the one using the admin panel and we don't want him to accidentally mess with the Pods settings or disable the Pods plugin. We also don't want to have to include instructions saying "don't mess with this" – because we know those instructions won't be followed...

asked Sep 14 '11 at 11:07

brianpurkiss

1

add comment
enter at least 15 characters

3 Answers

1

You could remove it using Adminimize if you'd like, or:

add_action('admin_menu', 'remove_pods_menu', 11);
function remove_pods_menu () {
    global $pods_init;
    remove_action('admin_menu', array($pods_init, 'pods_menu'));
}

answered Sep 15 '11 at 2:32

sc0ttkclark

2936

add comment
enter at least 15 characters
0

I just tried Scott's suggestion with no luck, but then I discovered the constant PODS_DISABLE_ADMIN_MENU which he must've added since.

For example:

add_action('admin_menu', 'remove_pods_menu', 11);
function remove_pods_menu () {
    define('PODS_DISABLE_ADMIN_MENU', true);
}

works perfectly for me

answered Mar 31 at 4:23

Dan Farrow

1

add comment
enter at least 15 characters
0

Oh I should mention that Pods can still be disabled on the Plugins page...

answered Mar 31 at 4:26

Dan Farrow

1

add comment
enter at least 15 characters