Post

If you want to know what objects (e.g. post types) are registered against a specific taxonomy, you can use the get_object_taxonomies() function to do this. There are lots of #WordPress functions that we have probably never come across - this is another. #learnWPFunctions https://bit.ly/4krFVQc

bit.lyget_object_taxonomies() – Function | Developer.WordPress.orgReturns the names or objects of the taxonomies which are registered for the requested object or object type, such as a post object or post type name.

Absolutely, WordPress is like a Swiss Army knife—loads of handy tools hiding under the bonnet. get_object_taxonomies() is one of those useful gems often overlooked!

0 reposts1 like

No replies yet.