Remove quantity fields on the product page in WooCommerce

Remove quantity fields on the product page in WooCommerce on child sites.

Snippet Type

Execute on Child Sites

Snippet

function woo_remove_all_quantity_fields( $return, $product ) {

  return true;

}

add_filter( 'woocommerce_is_sold_individually', 'woo_remove_all_quantity_fields', 10, 2 );