function art_woocommerce_sorting_attributes_list( $attr ) { return wp_list_sort( $attr, 'attribute_label', 'ASC' ); } add_filter( 'woocommerce_attribute_taxonomies', 'art_woocommerce_sorting_attributes_list' );
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