Tips on Customizing WooCommerce

How to Hide WooCommerce Admin Menus

function plt_hide_woocommerce_menus() {
	//Hide "Tools → Scheduled Actions".
	remove_submenu_page('tools.php', 'action-scheduler');

	//Hide "WooCommerce".
	remove_menu_page('woocommerce');
	//Hide "WooCommerce → Orders".
	remove_submenu_page('woocommerce', 'edit.php?post_type=shop_order');
	//Hide "WooCommerce → Coupons".
	remove_submenu_page('woocommerce', 'edit.php?post_type=shop_coupon');
	//Hide "WooCommerce → Reports".
	remove_submenu_page('woocommerce', 'wc-reports');
	//Hide "WooCommerce → Settings".
	remove_submenu_page('woocommerce', 'wc-settings');
	//Hide "WooCommerce → Status".
	remove_submenu_page('woocommerce', 'wc-status');
	//Hide "WooCommerce → Extensions".
	remove_submenu_page('woocommerce', 'wc-addons');

	//Hide "Products".
	remove_menu_page('edit.php?post_type=product');
	//Hide "Products → All Products".
	remove_submenu_page('edit.php?post_type=product', 'edit.php?post_type=product');
	//Hide "Products → Add New".
	remove_submenu_page('edit.php?post_type=product', 'post-new.php?post_type=product');
	//Hide "Products → Categories".
	remove_submenu_page('edit.php?post_type=product', 'edit-tags.php?taxonomy=product_cat&post_type=product');
	//Hide "Products → Tags".
	remove_submenu_page('edit.php?post_type=product', 'edit-tags.php?taxonomy=product_tag&post_type=product');
	//Hide "Products → Attributes".
	remove_submenu_page('edit.php?post_type=product', 'product_attributes');
}

add_action('admin_menu', 'plt_hide_woocommerce_menus', 71);

Where do I put this code?

How to Hide WooCommerce Meta Boxes

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

	//Hide the "Product data" meta box.
	remove_meta_box('woocommerce-product-data', $screen->id, 'normal');
	//Hide the "Product short description" meta box.
	remove_meta_box('postexcerpt', $screen->id, 'normal');
	//Hide the "Product gallery" meta box.
	remove_meta_box('woocommerce-product-images', $screen->id, 'side');
	//Hide the "Coupon data" meta box.
	remove_meta_box('woocommerce-coupon-data', $screen->id, 'normal');
	//Hide the "Order data" meta box.
	remove_meta_box('woocommerce-order-data', $screen->id, 'normal');
	//Hide the "Items" meta box.
	remove_meta_box('woocommerce-order-items', $screen->id, 'normal');
	//Hide the "Downloadable product permissions" meta box.
	remove_meta_box('woocommerce-order-downloads', $screen->id, 'normal');
	//Hide the "Order actions" meta box.
	remove_meta_box('woocommerce-order-actions', $screen->id, 'side');
	//Hide the "Order notes" meta box.
	remove_meta_box('woocommerce-order-notes', $screen->id, 'side');
}

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

How to Hide WooCommerce Dashboard Widgets

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

	//Remove the "WooCommerce Recent Reviews" widget.
	remove_meta_box('woocommerce_dashboard_recent_reviews', 'dashboard', 'normal');
	//Remove the "WooCommerce Status" widget.
	remove_meta_box('woocommerce_dashboard_status', 'dashboard', 'normal');
}

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