Tips on Customizing Direct Checkout for WooCommerce

How to Hide the "Suggestions" Admin Menu

function plt_hide_woocommerce_direct_checkout_menus() {
	//Hide the "Suggestions" menu.
	remove_menu_page('wc-settings_suggestions');
}

add_action('admin_menu', 'plt_hide_woocommerce_direct_checkout_menus', 1000);

Where do I put this code?

How to Hide the "QuadLayers News" Dashboard Widget

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

	//Remove the "QuadLayers News" widget.
	remove_meta_box('wp-dashboard-widget-news', 'dashboard', 'normal');
}

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