Tips on Customizing Push Notification for Post and BuddyPress

How to Hide Push Notification for Post and BuddyPress Admin Menus

function plt_hide_push_notification_for_post_and_buddypress_menus() {
	//Hide "Tools → Scheduled Actions".
	remove_submenu_page('tools.php', 'action-scheduler');

	//Hide "PNFPB Push Notification".
	remove_menu_page('pnfpb-push-notification-configuration-slug');
	//Hide "PNFPB Push Notification → Configuration".
	remove_submenu_page('pnfpb-push-notification-configuration-slug', 'pnfpb-push-notification-configuration-slug');
	//Hide "PNFPB Push Notification → Options".
	remove_submenu_page('pnfpb-push-notification-configuration-slug', 'pnfpb-icfcm-slug');
	//Hide "PNFPB Push Notification → Send Notification".
	remove_submenu_page('pnfpb-push-notification-configuration-slug', 'pnfpb_icfmtest_notification');
	//Hide "PNFPB Push Notification → Delivered/read report".
	remove_submenu_page('pnfpb-push-notification-configuration-slug', 'pnfpb_icfm_delivery_notifications_list');
	//Hide "PNFPB Push Notification → Browser based Delivery reports".
	remove_submenu_page('pnfpb-push-notification-configuration-slug', 'pnfpb_icfm_browser_delivery_notifications_list');
	//Hide "PNFPB Push Notification → Notifications from admin".
	remove_submenu_page('pnfpb-push-notification-configuration-slug', 'pnfpb_icfm_onetime_notifications_list');
	//Hide "PNFPB Push Notification → PWA settings".
	remove_submenu_page('pnfpb-push-notification-configuration-slug', 'pnfpb_icfm_pwa_app_settings');
	//Hide "PNFPB Push Notification → Tokens list".
	remove_submenu_page('pnfpb-push-notification-configuration-slug', 'pnfpb_icfm_device_tokens_list');
	//Hide "PNFPB Push Notification → Frontend settings".
	remove_submenu_page('pnfpb-push-notification-configuration-slug', 'pnfpb_icfm_frontend_settings');
	//Hide "PNFPB Push Notification → Shortcodes".
	remove_submenu_page('pnfpb-push-notification-configuration-slug', 'pnfpb_icfm_shortcode_settings');
	//Hide "PNFPB Push Notification → Buttons".
	remove_submenu_page('pnfpb-push-notification-configuration-slug', 'pnfpb_icfm_button_settings');
	//Hide "PNFPB Push Notification → Integrate Mobile App".
	remove_submenu_page('pnfpb-push-notification-configuration-slug', 'pnfpb_icfm_integrate_app');
	//Hide "PNFPB Push Notification → NGNIX".
	remove_submenu_page('pnfpb-push-notification-configuration-slug', 'pnfpb_icfm_settings_for_ngnix_server');
	//Hide "PNFPB Push Notification → Action scheduler".
	remove_submenu_page('pnfpb-push-notification-configuration-slug', 'pnfpb_icfm_action_scheduler');
}

add_action('admin_menu', 'plt_hide_push_notification_for_post_and_buddypress_menus', 11);

Where do I put this code?

How to Hide the "PNFPB Push Notifications" Meta Box

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

	//Hide the "PNFPB Push Notifications" meta box.
	remove_meta_box('PNFPB_send_notification_html', $screen->id, 'side');
}

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