wp_term_order_taxonomy_override_orderby_supported
filter prevents explicitly ordering by order
#26
Milestone
wp_term_order_taxonomy_override_orderby_supported
filter prevents explicitly ordering by order
#26
I'm imagining a scenario where this plugin is installed and functional, but a developer may want opt-in behavior for the actual sorting of terms.
If the
wp_term_order_taxonomy_override_orderby_supported
filter is used to return false for a taxonomy, there is no way to get those terms in the ordered order. The following will not get short-circuited:If that filter is not utilized, and the default behavior is used, the following will sort by the custom order before sorting by name, rather than sort by just name:
The solution seems to by that you would either respect
name
when explicitly set as the desired order, or the filter above would have a conditional for whenorder
has been explicitly set as the desired order.My current workaround looks like this:
The text was updated successfully, but these errors were encountered: