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-icfcm-slug');
	//Hide "PNFPB Push Notification → Push settings".
	remove_submenu_page('pnfpb-icfcm-slug', 'pnfpb-icfcm-slug');
	//Hide "PNFPB Push Notification → Device tokens".
	remove_submenu_page('pnfpb-icfcm-slug', 'pnfpb_icfm_device_tokens_list');
	//Hide "PNFPB Push Notification → PWA app".
	remove_submenu_page('pnfpb-icfcm-slug', 'pnfpb_icfm_pwa_app_settings');
	//Hide "PNFPB Push Notification → Send Notification".
	remove_submenu_page('pnfpb-icfcm-slug', 'pnfpb_icfmtest_notification');
	//Hide "PNFPB Push Notification → Push notifications list".
	remove_submenu_page('pnfpb-icfcm-slug', 'pnfpb_icfm_onetime_notifications_list');
	//Hide "PNFPB Push Notification → Frontend subscription settings".
	remove_submenu_page('pnfpb-icfcm-slug', 'pnfpb_icfm_frontend_settings');
	//Hide "PNFPB Push Notification → Shortcode Customization".
	remove_submenu_page('pnfpb-icfcm-slug', 'pnfpb_icfm_shortcode_settings');
	//Hide "PNFPB Push Notification → Customize Buttons".
	remove_submenu_page('pnfpb-icfcm-slug', 'pnfpb_icfm_button_settings');
	//Hide "PNFPB Push Notification → Integrate Mobile App".
	remove_submenu_page('pnfpb-icfcm-slug', 'pnfpb_icfm_integrate_app');
	//Hide "PNFPB Push Notification → NGNIX".
	remove_submenu_page('pnfpb-icfcm-slug', 'pnfpb_icfm_settings_for_ngnix_server');
	//Hide "PNFPB Push Notification → Action scheduler".
	remove_submenu_page('pnfpb-icfcm-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);