Hide Pods From WP Admin Panel
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...
3 Answers
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'));
}
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
Oh I should mention that Pods can still be disabled on the Plugins page...


