-
Home
-
Creative Mail – Easier WordPress & WooCommerce Email Marketing
- Tips
How to Hide Creative Mail by Newfold Digital Admin Menus
function plt_hide_creative_mail_by_constant_contact_menus() {
//Hide the "Creative Mail" menu.
remove_menu_page('creativemail');
//Hide the "Creative Mail → Creative Mail" menu.
remove_submenu_page('creativemail', 'creativemail');
//Hide the "Creative Mail → Settings" menu.
remove_submenu_page('creativemail', 'creativemail_settings');
}
add_action('admin_menu', 'plt_hide_creative_mail_by_constant_contact_menus', 11);
Where do I put this code?
How to Hide the "Email Marketing By" Dashboard Widget
function plt_hide_creative_mail_by_constant_contact_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Email Marketing By" widget.
remove_meta_box('ce4wp_admin_dashboard_widget', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_creative_mail_by_constant_contact_dashboard_widgets', 20);