Tips on Customizing Progress Bar & Skill Bar

How to Hide Progress Bar WP Admin Menus

function plt_hide_progress_bar_wp_menus() {
	//Hide the "ProgressBar WP" menu.
	remove_menu_page('edit.php?post_type=progressbar_wp_r');
	//Hide the "ProgressBar WP → All ProgressBar" menu.
	remove_submenu_page('edit.php?post_type=progressbar_wp_r', 'edit.php?post_type=progressbar_wp_r');
	//Hide the "ProgressBar WP → Add New ProgressBar" menu.
	remove_submenu_page('edit.php?post_type=progressbar_wp_r', 'post-new.php?post_type=progressbar_wp_r');
}

add_action('admin_menu', 'plt_hide_progress_bar_wp_menus', 15);

Where do I put this code?

How to Hide Progress Bar WP Meta Boxes

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

	//Hide the "Select Progressbar Design" meta box.
	remove_meta_box('progressbar_wp_templates', $screen->id, 'normal');
	//Hide the "Add Progressbar" meta box.
	remove_meta_box('add_wp_progressbar', $screen->id, 'normal');
	//Hide the "Progress Bar Shortcode" meta box.
	remove_meta_box('progressbar_wp_shortcode', $screen->id, 'normal');
	//Hide the "Progress Bar Settings" meta box.
	remove_meta_box('progressbar_wp_setting', $screen->id, 'side');
	//Hide the "progress bar Pro Features" meta box.
	remove_meta_box('progressbar_wp_features', $screen->id, 'side');
}

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