Tips on Customizing Notification – Custom Notifications and Alerts for WordPress

How to Hide Notification Admin Menus

function plt_hide_notification_menus() {
	//Hide "Notifications".
	remove_menu_page('edit.php?post_type=notification');
	//Hide "Notifications → Notifications".
	remove_submenu_page('edit.php?post_type=notification', 'edit.php?post_type=notification');
	//Hide "Notifications → Add New Notification".
	remove_submenu_page('edit.php?post_type=notification', 'post-new.php?post_type=notification');
	//Hide "Notifications → Extensions".
	remove_submenu_page('edit.php?post_type=notification', 'extensions');
	//Hide "Notifications → Settings".
	remove_submenu_page('edit.php?post_type=notification', 'settings');
}

add_action('admin_menu', 'plt_hide_notification_menus', 31);

Where do I put this code?

How to Hide Notification Meta Boxes

function plt_hide_notification_metaboxes() {
	$screen = get_current_screen();
	if ( !$screen ) {
		return;
	}

	//Hide the "Save" meta box.
	remove_meta_box('notification_save', $screen->id, 'side');
	//Hide the "Merge Tags" meta box.
	remove_meta_box('notification_merge_tags', $screen->id, 'side');
	//Hide the "Conditionals" meta box.
	remove_meta_box('notification_conditionals', $screen->id, 'advanced');
}

add_action('add_meta_boxes', 'plt_hide_notification_metaboxes', 20);