• Resolved dmag55

    (@dmag55)


    How can I custom order product attribute taxonomies as there seem to be no drag-and-drop feature available.

Viewing 2 replies - 1 through 2 (of 2 total)
  • There’s a filter that could be used to do that:

    add_filter( 'woocommerce_attribute_taxonomies', 'custom_attribute_taxonomies' );
    function custom_attribute_taxonomies( $raw_attribute_taxonomies ) { 
      // taxonomies come here in alphabetical-by-name order
      // custom code here to reorder the attributes to your custom order
      return $raw_attribute_taxonomies;
    }

    PHP skills will be needed to write the reorder code. You’ll need to revisit this code if you add a taxonomy. It’ll be some effort for not much benefit.

    Mirko P.

    (@rainfallnixfig)

    Hi there,

    We’ve not seen any activity on this thread for a while, so I’m marking this thread as resolved.

    @dmag55 if you have further questions, please feel free to open a new topic.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to sort product attributes?’ is closed to new replies.