How do I hook into the wp_terms_checklist()?
-
I have a CPT with custom hierarchical taxonomy. I need to sort the checklist in the admin panel meta box by the item ID, not the default ‘count’.
It looks like the list is been generated in wp-admin/includes/template.php and, indeed, if i change ‘count’ to ‘ID’ in line 130, I get the desired result.
However I would much prefer to work it into my plugin instead of hacking the core. But I do not see any hooks in this file. How do I hook into the wp_terms_checklist()?
I am sketchy with writing custom hooks so I was hoping to use an existing one. Will someone kindly point me to it or just write me an example code to put in my plugin?
Thank you in advance.
The topic ‘How do I hook into the wp_terms_checklist()?’ is closed to new replies.