I would like to hide a second attribute on the woocommerce product page. It works great with this code for one attribute:
function my_attribute_hider ( $attributes ) {
if ( isset( $attributes['pa_attribute-name'] ) ){
unset( $attributes['pa_attribute-name'] );
}
return $attributes;
}
add_filter( 'woocommerce_get_product_attributes', 'my_attribute_hider' );
How to add a second one?