-
Home
-
Touchsuite Payments
- Tips
How to Hide Touchsuite Payments Admin Menus
function plt_hide_touchsuite_payments_menus() {
//Hide "Touchsuite Payments".
remove_menu_page('tspay_dashboard');
//Hide "Touchsuite Payments → Dashboard".
remove_submenu_page('tspay_dashboard', 'tspay_dashboard');
//Hide "Touchsuite Payments → Members".
remove_submenu_page('tspay_dashboard', 'tspay_members');
//Hide "Touchsuite Payments → Settings".
remove_submenu_page('tspay_dashboard', 'tspay_settings');
//Hide "Touchsuite Payments → Orders".
remove_submenu_page('tspay_dashboard', 'tspay_orders');
//Hide "Touchsuite Payments → License".
remove_submenu_page('tspay_dashboard', 'tspay_license');
}
add_action('admin_menu', 'plt_hide_touchsuite_payments_menus', 11);
Where do I put this code?
How to Hide the "Levels" Meta Box
function plt_hide_touchsuite_payments_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Levels" meta box.
remove_meta_box('tspay_leveldiv', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_touchsuite_payments_metaboxes', 20);