Tips on Customizing Easy WP Voting With Payment

How to Hide Easy WP Voting With Payment Admin Menus

function plt_hide_easy_wp_voting_with_payment_menus() {
	//Hide "Easy WP Voting With Payments".
	remove_menu_page('edit.php?post_type=ewvwp');
	//Hide "Easy WP Voting With Payments → All Candidate".
	remove_submenu_page('edit.php?post_type=ewvwp', 'edit.php?post_type=ewvwp');
	//Hide "Easy WP Voting With Payments → Add New Candidate".
	remove_submenu_page('edit.php?post_type=ewvwp', 'post-new.php?post_type=ewvwp');
	//Hide "Easy WP Voting With Payments → Contest Categories".
	remove_submenu_page('edit.php?post_type=ewvwp', 'edit-tags.php?taxonomy=ewvwp-category&post_type=ewvwp');
	//Hide "Easy WP Voting With Payments → Settings".
	remove_submenu_page('edit.php?post_type=ewvwp', 'ewvwp_plugin');
}

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

Where do I put this code?

How to Hide Easy WP Voting With Payment Meta Boxes

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

	//Hide the "Nickname" meta box.
	remove_meta_box('ewvwp_nickname', $screen->id, 'normal');
	//Hide the "Age" meta box.
	remove_meta_box('ewvwp_age', $screen->id, 'normal');
	//Hide the "Number of Votes" meta box.
	remove_meta_box('ewvwp_votes', $screen->id, 'normal');
	//Hide the "State" meta box.
	remove_meta_box('ewvwp_state', $screen->id, 'normal');
	//Hide the "Occupation" meta box.
	remove_meta_box('ewvwp_occupation', $screen->id, 'normal');
}

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