/** * Hide “All Products > Tags” Link from Admin Menu */ add_action( 'admin_menu', 'ml_hide_product_tags_admin_menu', 9999 ); function ml_hide_product_tags_admin_menu() { remove_submenu_page( 'edit.php?post_type=product', 'edit-tags.php?taxonomy=product_tag&post_type=product' ); } /** * Remove Product tags Metabox */ add_action( 'admin_menu', 'ml_hide_product_tags_metabox' ); function ml_hide_product_tags_metabox() { remove_meta_box( 'tagsdiv-product_tag', 'product', 'side' ); } /** * Remove Tags Column from All Products page */ add_filter('manage_product_posts_columns', 'ml_hide_product_tags_column', 999 ); function ml_hide_product_tags_column( $product_columns ) { unset( $product_columns['product_tag'] ); return $product_columns; } /** * Remove Product Tags Textarea from Quick Edit and Bulk Edit */ add_filter( 'quick_edit_show_taxonomy', 'ml_hide_product_tags_quick_edit', 10, 2 ); function ml_hide_product_tags_quick_edit( $show, $taxonomy_name ) { if ( 'product_tag' == $taxonomy_name ) $show = false; return $show; } /** * Remove Product Tag Cloud Widget */ add_action( 'widgets_init', 'ml_remove_product_tag_cloud_widget' ); function ml_remove_product_tag_cloud_widget(){ unregister_widget('WC_Widget_Product_Tag_Cloud'); }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter