-
Home
-
Dropp Pay Per Use
- Tips
How to Hide Dropp Pay Per Use Admin Menus
function plt_hide_dropp_pay_per_use_menus() {
//Hide "Dropp Pay Per Use".
remove_menu_page('dropp-cc-paywall');
//Hide "Dropp Pay Per Use → Welcome & Quick Start".
remove_submenu_page('dropp-cc-paywall', 'dropp-cc-paywall');
//Hide "Dropp Pay Per Use → 1. Link Dropp Account".
remove_submenu_page('dropp-cc-paywall', 'dropp-cc-paywall-account');
//Hide "Dropp Pay Per Use → 2. Create System pages".
remove_submenu_page('dropp-cc-paywall', 'dropp-cc-paywall-settings');
//Hide "Dropp Pay Per Use → 3. Set Your Pricing Plan".
remove_submenu_page('dropp-cc-paywall', 'dropp-cc-paywall-current-restrictions');
//Hide "Dropp Pay Per Use → View Recent Purchases".
remove_submenu_page('dropp-cc-paywall', 'dropp-cc-paywall-subscriptions');
//Hide "Dropp Pay Per Use → View Logs".
remove_submenu_page('dropp-cc-paywall', 'dropp-cc-paywall-logs');
}
add_action('admin_menu', 'plt_hide_dropp_pay_per_use_menus', 11);
Where do I put this code?
How to Hide the "Dropp Paywall" Meta Box
function plt_hide_dropp_pay_per_use_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Dropp Paywall" meta box.
remove_meta_box('droppcc_paywall_metabox', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_dropp_pay_per_use_metaboxes', 20);