Tips on Customizing kk Star Ratings – Rate Post & Collect User Feedbacks

How to Hide kk Star Ratings Admin Menus

function plt_hide_kk_star_ratings_menus() {
	//Hide "kk Star Ratings".
	remove_menu_page('kk-star-ratings');
	//Hide "kk Star Ratings → Settings".
	remove_submenu_page('kk-star-ratings', 'kk-star-ratings');
	//Hide "kk Star Ratings → User SyncNEW".
	remove_submenu_page('kk-star-ratings', 'kkstar-fusewp');
	//Hide "kk Star Ratings → Paid Membership".
	remove_submenu_page('kk-star-ratings', 'kkstar-ppress');
	//Hide "kk Star Ratings → Upgrade to Pro".
	remove_submenu_page('kk-star-ratings', 'https://feedbackwp.com/pricing/?utm_source=liteplugin&utm_medium=menu-link&utm_campaign=menu-upsell');
}

add_action('admin_menu', 'plt_hide_kk_star_ratings_menus', 1000000000);

Where do I put this code?

How to Hide the "kk Star Ratings" Meta Box

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

	//Hide the "kk Star Ratings" meta box.
	remove_meta_box('kk-star-ratings', $screen->id, 'side');
}

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