Tips on Customizing ArCa Payment Gateway

How to Hide ArCa Payment Gateway Admin Menus

function plt_hide_arca_payment_gateway_menus() {
	//Hide "ArCa Gateway".
	remove_menu_page('dashboard');
	//Hide "ArCa Gateway → Dashboard".
	remove_submenu_page('dashboard', 'dashboard');
	//Hide "ArCa Gateway → Orders".
	remove_submenu_page('dashboard', 'оrderlog');
	//Hide "ArCa Gateway → Error logs".
	remove_submenu_page('dashboard', 'errorlogs');
	//Hide "ArCa Gateway → Price list".
	remove_submenu_page('dashboard', 'pricelist');
	//Hide "ArCa Gateway → Checkout form".
	remove_submenu_page('dashboard', 'checkoutform');
	//Hide "ArCa Gateway → Currency".
	remove_submenu_page('dashboard', 'currency');
	//Hide "ArCa Gateway → vPOS Settings".
	remove_submenu_page('dashboard', 'config');
	//Hide "ArCa Gateway → Idram Settings".
	remove_submenu_page('dashboard', 'idramconfig');
	//Hide "ArCa Gateway → Support".
	remove_submenu_page('dashboard', 'support');
	//Hide "ArCa Gateway → How To Use".
	remove_submenu_page('dashboard', 'how_to_use');
}

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

Where do I put this code?

How to Hide the "ArCa Payment Gateway: Finance report" Dashboard Widget

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

	//Remove the "ArCa Payment Gateway: Finance report" widget.
	remove_meta_box('apg_dashboard_widget', 'dashboard', 'normal');
}

add_action('wp_dashboard_setup', 'plt_hide_arca_payment_gateway_dashboard_widgets', 20);