The function below can be used for getting the WP_Term object for the term that’s currently being edited on the term.php page in the WordPress admin. Just make sure that when you call this, the globalĀ $taxnow variable has been set. Using WP’sĀ admin_init hook, or anything that fires after that point will work.

Example usage

Leave a reply

Your email address will not be published. Required fields are marked *