-
Home
-
SureTriggers: All-in-One Automation Platform
- Tips
How to Hide SureTriggers Admin Menus
function plt_hide_suretriggers_menus() {
//Hide the "SureTriggers" menu.
remove_menu_page('suretriggers');
//Hide the "SureTriggers → SureTriggers" menu.
remove_submenu_page('suretriggers', 'suretriggers');
//Hide the "SureTriggers → Status" menu.
remove_submenu_page('suretriggers', 'suretriggers-status');
}
add_action('admin_menu', 'plt_hide_suretriggers_menus', 11);
Where do I put this code?
How to Hide the "Please Connect SureTriggers" Dashboard Widget
function plt_hide_suretriggers_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Please Connect SureTriggers" widget.
remove_meta_box('suretriggers_dashboard_widget', 'dashboard', 'side');
}
add_action('wp_dashboard_setup', 'plt_hide_suretriggers_dashboard_widgets', 20);