Tips on Customizing Perfect Brands for WooCommerce

How to Hide the "Suggestions" Admin Menu

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

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

Where do I put this code?

How to Hide the "QuadLayers News" Dashboard Widget

function plt_hide_perfect_woocommerce_brands_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_perfect_woocommerce_brands_dashboard_widgets', 20);