Tips on Customizing Lead Capture System

How to Hide WPrequal Admin Menus

function plt_hide_wprequal_menus() {
	//Hide "WPrequal Settings".
	remove_menu_page('wprequal_options');
	//Hide "WPrequal Settings → WPrequal Settings".
	remove_submenu_page('wprequal_options', 'wprequal_options');
	//Hide "WPrequal Settings → Survey Forms".
	remove_submenu_page('wprequal_options', 'edit.php?post_type=wpq_survey_form');
	//Hide "WPrequal Settings → Contact Forms".
	remove_submenu_page('wprequal_options', 'edit.php?post_type=wpq_contact_form');
	//Hide "WPrequal Settings → Register Forms".
	remove_submenu_page('wprequal_options', 'edit.php?post_type=wpq_register_form');
	//Hide "WPrequal Settings → Leads".
	remove_submenu_page('wprequal_options', 'edit.php?post_type=wprequal_lead');
	//Hide "WPrequal Settings → Export Leads".
	remove_submenu_page('wprequal_options', 'export-leads');
}

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

Where do I put this code?

How to Hide WPrequal Meta Boxes

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

	//Hide the "Save/Update Lead" meta box.
	remove_meta_box('submitdiv', $screen->id, 'side');
	//Hide the "Notes" meta box.
	remove_meta_box('note_meta', $screen->id, 'advanced');
}

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