How to remove SKU’s from ALL products in Quick View – already remove from each product page
Please give this a try. I’ve modified your existing code to check whether it’s a product or not. Let me know if it works. function sv_remove_product_page_skus( $enabled ) { global $post; if ( ! is_admin() && get_post_type( $post->ID ) == ‘product’ ) { return false; } return $enabled; } add_filter( ‘wc_product_sku_enabled’, ‘sv_remove_product_page_skus’ );