-
Home
-
Marketing Automation by AZEXO
- Tips
How to Hide Marketing Automation by AZEXO Admin Menus
function plt_hide_marketing_automation_by_azexo_menus() {
//Hide "Automation".
remove_menu_page('edit.php?post_type=azr_rule');
//Hide "Automation → Automation".
remove_submenu_page('edit.php?post_type=azr_rule', 'edit.php?post_type=azr_rule');
//Hide "Automation → Add New Rule".
remove_submenu_page('edit.php?post_type=azr_rule', 'post-new.php?post_type=azr_rule');
//Hide "Automation → Bouncing settings".
remove_submenu_page('edit.php?post_type=azr_rule', 'azh-bouncing-settings');
//Hide "Automation → SMS settings".
remove_submenu_page('edit.php?post_type=azr_rule', 'azh-sms-settings');
}
add_action('admin_menu', 'plt_hide_marketing_automation_by_azexo_menus', 15);
Where do I put this code?
How to Hide Marketing Automation by AZEXO Meta Boxes
function plt_hide_marketing_automation_by_azexo_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Visitor info" meta box.
remove_meta_box('azm-visitor-info', $screen->id, 'side');
//Hide the "Visitor history" meta box.
remove_meta_box('azm-activity-history', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_marketing_automation_by_azexo_metaboxes', 20);