-
Home
-
Email Subscribers by Icegram Express – Affordable, Powerful Email Marketing for WordPress & WooCommerce
- Tips
How to Hide Icegram Express - Email Subscribers, Newsletters and Marketing Automation Plugin Admin Menus
function plt_hide_email_subscribers_menus() {
//Hide "Tools → Scheduled Actions".
remove_submenu_page('tools.php', 'action-scheduler');
//Hide "Icegram Express".
remove_menu_page('es_dashboard');
//Hide "Icegram Express → Dashboard".
remove_submenu_page('es_dashboard', 'es_dashboard');
//Hide "Icegram Express → Audience".
remove_submenu_page('es_dashboard', 'es_subscribers');
//Hide "Icegram Express → Lists".
remove_submenu_page('es_dashboard', 'es_lists');
//Hide "Icegram Express → Forms".
remove_submenu_page('es_dashboard', 'es_forms');
//Hide "Icegram Express → Campaigns".
remove_submenu_page('es_dashboard', 'es_campaigns');
//Hide "Icegram Express → Post Notifications".
remove_submenu_page('es_dashboard', 'es_notifications');
//Hide "Icegram Express → Broadcast".
remove_submenu_page('es_dashboard', 'es_newsletters');
//Hide "Icegram Express → Workflows".
remove_submenu_page('es_dashboard', 'es_workflows');
//Hide "Icegram Express → Reports".
remove_submenu_page('es_dashboard', 'es_reports');
//Hide "Icegram Express → Logs".
remove_submenu_page('es_dashboard', 'es_logs');
//Hide "Icegram Express → Settings".
remove_submenu_page('es_dashboard', 'es_settings');
//Hide "Icegram Express → Help & Info".
remove_submenu_page('es_dashboard', 'es_general_information');
//Hide "Icegram Express → Get PRO".
remove_submenu_page('es_dashboard', 'es_pricing');
}
add_action('admin_menu', 'plt_hide_email_subscribers_menus', 11);
Where do I put this code?
How to Hide the "Available Keywords" Meta Box
function plt_hide_email_subscribers_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Available Keywords" meta box.
remove_meta_box('es_template_meta_box', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_email_subscribers_metaboxes', 20);
How to Hide the "Icegram Express" Dashboard Widget
function plt_hide_email_subscribers_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Icegram Express" widget.
remove_meta_box('es_dashboard_stats_widget', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_email_subscribers_dashboard_widgets', 20);