Tips on Customizing Planly

How to Hide Planly Admin Menus

function plt_hide_circular_year_planner_menus() {
	//Hide "Planly".
	remove_menu_page('edit.php?post_type=cypl_event');
	//Hide "Planly → Planly".
	remove_submenu_page('edit.php?post_type=cypl_event', 'edit.php?post_type=cypl_event');
	//Hide "Planly → Add New Event".
	remove_submenu_page('edit.php?post_type=cypl_event', 'post-new.php?post_type=cypl_event');
	//Hide "Planly → Settings".
	remove_submenu_page('edit.php?post_type=cypl_event', 'cypl-settings');
}

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

Where do I put this code?

How to Hide the "Event Details" Meta Box

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

	//Hide the "Event Details" meta box.
	remove_meta_box('cypl_event_details', $screen->id, 'normal');
}

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