-
Home
-
Customize WordPress Emails and Alerts – Better Notifications for WP
- Tips
function plt_hide_bnfw_menus() {
//Hide "Notifications".
remove_menu_page('edit.php?post_type=bnfw_notification');
//Hide "Notifications → All Notifications".
remove_submenu_page('edit.php?post_type=bnfw_notification', 'edit.php?post_type=bnfw_notification');
//Hide "Notifications → Add New Notification".
remove_submenu_page('edit.php?post_type=bnfw_notification', 'post-new.php?post_type=bnfw_notification');
//Hide "Notifications → Settings".
remove_submenu_page('edit.php?post_type=bnfw_notification', 'bnfw-settings');
//Hide "Notifications → Add-on Licenses".
remove_submenu_page('edit.php?post_type=bnfw_notification', 'bnfw-license');
//Hide "Notifications → Documentation".
remove_submenu_page('edit.php?post_type=bnfw_notification', 'https://betternotificationsforwp.com/documentation/');
//Hide "Notifications → Premium Add-ons".
remove_submenu_page('edit.php?post_type=bnfw_notification', 'https://betternotificationsforwp.com/downloads/');
//Hide "Notifications → Priority Support".
remove_submenu_page('edit.php?post_type=bnfw_notification', 'https://betternotificationsforwp.com/priority-support/');
}
add_action('admin_menu', 'plt_hide_bnfw_menus', 13);
Where do I put this code?