You may use the teccc_legend_terms filter as documented in the src/views/legend.php file to return an ordered list of terms/categories. https://github.com/the-events-calendar/the-events-calendar-category-colors/blob/7229976135aa84c13b8f946715968d03c62eae74/src/views/legend.php#L22
Thanks for the quick reply Andy. 2 questions:
- When using the
teccc_legend_termsfilter , how is the order then determined? - 2) Where can I find the legend.php file?
The above link shows where the file is.
You would code the order you want returned from the filter.
Found it, thanks.
Could you explain how this works please? > You would code the order you want returned from the filter.
The filter returns an array of terms. You would code the order of the array in your filter’s callback function and return that newly ordered array. The remaining code would use this as the order for the legend.
