Tips on Customizing Editorial Calendar, Marketing Content, Kanban Board – PublishPress Planner

How to Hide PublishPress Planner Admin Menus

function plt_hide_publishpress_menus() {
	//Hide "Planner".
	remove_menu_page('pp-calendar');
	//Hide "Planner → Content Calendar".
	remove_submenu_page('pp-calendar', 'pp-calendar');
	//Hide "Planner → Content Overview".
	remove_submenu_page('pp-calendar', 'pp-content-overview');
	//Hide "Planner → Content Board".
	remove_submenu_page('pp-calendar', 'pp-content-board');
	//Hide "Planner → Notifications".
	remove_submenu_page('pp-calendar', 'edit.php?post_type=psppnotif_workflow');
	//Hide "Planner → Settings".
	remove_submenu_page('pp-calendar', 'pp-modules-settings');
	//Hide "Planner → Upgrade to Pro".
	remove_submenu_page('pp-calendar', 'pp-calendar-menu-upgrade-link');
}

add_action('admin_menu', 'plt_hide_publishpress_menus', 21);

Where do I put this code?

How to Hide the "Notifications" Meta Box

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

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

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