Tips on Customizing Ultimate Editorial Rating – Best Product Review Plugin With Star Rating System (WooCommerce Support)

How to Hide Editorial Rating Admin Menus

function plt_hide_editorial_rating_menus() {
	//Hide "Editorial Rating".
	remove_menu_page('edit.php?post_type=wpas_review');
	//Hide "Editorial Rating → All Reviews".
	remove_submenu_page('edit.php?post_type=wpas_review', 'edit.php?post_type=wpas_review');
	//Hide "Editorial Rating → Add New Editorial Rating Review".
	remove_submenu_page('edit.php?post_type=wpas_review', 'post-new.php?post_type=wpas_review');
	//Hide "Editorial Rating → Categories".
	remove_submenu_page('edit.php?post_type=wpas_review', 'edit-tags.php?taxonomy=er_cat&post_type=wpas_review');
	//Hide "Editorial Rating → Cross Ratings".
	remove_submenu_page('edit.php?post_type=wpas_review', 'edit.php?post_type=wpas_cross_rating');
	//Hide "Editorial Rating → + Add New".
	remove_submenu_page('edit.php?post_type=wpas_review', 'post-new.php?post_type=wpas_cross_rating');
	//Hide "Editorial Rating → Blocks".
	remove_submenu_page('edit.php?post_type=wpas_review', 'http://127.0.0.1/wp-admin/edit.php?post_type=wpas_review&page=wpas-global-options#tab=blocks');
	//Hide "Editorial Rating → Settings".
	remove_submenu_page('edit.php?post_type=wpas_review', 'wpas-global-options');
	//Hide "Editorial Rating → Help".
	remove_submenu_page('edit.php?post_type=wpas_review', 'wpas_help');
	//Hide "Editorial Rating → Go Pro".
	remove_submenu_page('edit.php?post_type=wpas_review', 'https://pluginic.com/plugins/editorial-rating/?ref=100');
}

add_action('admin_menu', 'plt_hide_editorial_rating_menus', 16);

Where do I put this code?

How to Hide Editorial Rating Meta Boxes

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

	//Hide the "Editorial Rating Options" meta box.
	remove_meta_box('_wpas_er_byproduct_options', $screen->id, 'side');
	//Hide the "Editorial Rating Options" meta box.
	remove_meta_box('_wpas_er_options', $screen->id, 'advanced');
	//Hide the "Shortcode" meta box.
	remove_meta_box('_wpas_shortcode_options', $screen->id, 'side');
	//Hide the "Editorial Cross Rating Options" meta box.
	remove_meta_box('_wpas_cross_rating_opt', $screen->id, 'advanced');
}

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