Title: 4.4 Taxonomy Roundup
Author: Boone Gorges
Published: October 23, 2015
Last modified: November 4, 2015

---

 [  ](https://profiles.wordpress.org/boonebgorges/) [Boone Gorges](https://profiles.wordpress.org/boonebgorges/)
2:27 pm _on_ October 23, 2015     
Tags: [4.4 ( 46 )](https://make.wordpress.org/core/tag/4-4/),
[dev-notes ( 654 )](https://make.wordpress.org/core/tag/dev-notes/), [taxonomy ( 16 )](https://make.wordpress.org/core/tag/taxonomy/)

# 4.4 Taxonomy Roundup

We’ve made lots of improvements to the TaxonomyTaxonomy A taxonomy is a way to group
things together. In WordPress, some common taxonomies are category, link, tag, or
post format. [https://codex.wordpress.org/Taxonomies#Default_Taxonomies](https://codex.wordpress.org/Taxonomies#Default_Taxonomies).
component for WordPress 4.4. Let’s round ’em up, pardner!🐴

### Term MetaMeta Meta is a term that refers to the inside workings of a group. For us, this is the team that works on internal WordPress sites like WordCamp Central and Make WordPress.

The most significant improvement is the introduction of **term meta** [#10142](https://core.trac.wordpress.org/ticket/10142).
Use the new term meta APIAPI An API or Application Programming Interface is a software
intermediary that allows programs to interact with each other and share data in 
limited, clearly defined ways. – `add_term_meta()`, `update_term_meta()`, `delete_term_meta()`,
and `get_term_meta()` – to store arbitrary data about taxonomy terms, in the same
way you would for posts, users, or comments. The term query functions `get_terms()`
and `wp_get_object_terms()` now support a ‘meta_query’ parameter, with syntax identical
to the corresponding argument for `WP_Query`, etc.

Term meta was built with performance in mind. When fetching terms using `get_terms()`
or `wp_get_object_terms()`, metadata for located terms is loaded into the cache 
with a single database query; disable this by passing `'update_term_meta_cache' 
=> false` in your query parameters. When querying for posts using `WP_Query`, we
have another trick up our sleeves: term meta for terms belonging to matched posts
is lazy-loaded, so that all relevant term meta is only fetched the first time you
call `get_term_meta()` in the loopLoop The Loop is PHP code used by WordPress to
display posts. Using The Loop, WordPress processes each post to be displayed on 
the current page, and formats it according to how it matches specified criteria 
within The Loop tags. Any HTML or PHP code in the Loop will be processed on each
post. [https://codex.wordpress.org/The_Loop](https://codex.wordpress.org/The_Loop).

Developers who have previously implemented term meta in their own plugins or client
sites should [prepare their customizations for WordPress 4.4](https://make.wordpress.org/core/2015/09/22/preparing-your-plugins-and-your-client-sites-for-termmeta/),
to ensure that nothing’s broken in the transition.

### `WP_Term` and unique term IDs

For the last few releases, we’ve been working hard on the [taxonomy roadmap](https://make.wordpress.org/core/2015/08/27/taxonomy-roadmap-for-4-4-and-beyond/).
A major achievement was the complete splitting of shared taxonomy terms in 4.3, 
which ensures that terms can be uniquely identified by their `term_id`. In 4.4, 
we begin taking advantage of this uniqueness: the `$taxonomy` parameter is now optional
in `get_term()` and `get_term_field()`, functions that previously required both `
$term_id` and `$taxonomy`.

Under the hood, we’ve introduced `WP_Term`, a new class that properly models a term
object [#14162](https://core.trac.wordpress.org/ticket/14162). Everywhere where 
terms can be retrieved – one at a time, as in `get_term()` or `get_term_by()`, or
in bulk, as in `get_terms()` and `wp_get_object_terms()`– you should expect `WP_Term`
objects to be returned, rather than `stdClass`. For 4.4, this change doesn’t affect
much, aside from making our term-caching internals somewhat more sane. But in the
future, WP_Term will allow for more extensive caching throughout the Taxonomy component,
as well as the potential for method chaining and other developer conveniences.

### Other goodies

We’ve made lots of smaller improvements to Taxonomy as well. Some highlights:

 * Registering a taxonomy with `'public => false'` now prevents the taxonomy from
   being queried publicly. (Imagine that!) [#21949](https://core.trac.wordpress.org/ticket/21949)
 * The `$taxonomy` parameter for `get_term_by()` is optional (and ignored) when 
   fetching by `term_taxonomy_id`. [#30620](https://core.trac.wordpress.org/ticket/30620)
 * Argument arrays are now filtered in `get_terms()`, `register_taxonomy()`, and
   in the Categories post edit metaboxMetabox A post metabox is a draggable box 
   shown on the post editing screen. Its purpose is to allow the user to select 
   or enter information in addition to the main post content. This information should
   be related to the post in some way.. [#33026](https://core.trac.wordpress.org/ticket/33026)
   [#33369](https://core.trac.wordpress.org/ticket/33369)
 * Accented characters in term names are no longer ignored when checking for duplicates,
   allowing for, eg, tags ‘foo’ and ‘fóó’ to coexist. [#33864](https://core.trac.wordpress.org/ticket/33864)
 * Term relationships caches are properly busted during `wp_remove_object_terms()`.
   [#34338](https://core.trac.wordpress.org/ticket/34338)

[#4-4](https://make.wordpress.org/core/tag/4-4/), [#dev-notes](https://make.wordpress.org/core/tag/dev-notes/),
[#taxonomy](https://make.wordpress.org/core/tag/taxonomy/)

### Share this:

 * [  Threads ](https://make.wordpress.org/core/2015/10/23/4-4-taxonomy-roundup/?share=threads)
 * [  Mastodon ](https://make.wordpress.org/core/2015/10/23/4-4-taxonomy-roundup/?share=mastodon)
 * [  Bluesky ](https://make.wordpress.org/core/2015/10/23/4-4-taxonomy-roundup/?share=bluesky)
 * [  X ](https://make.wordpress.org/core/2015/10/23/4-4-taxonomy-roundup/?share=x)
 * [  Facebook ](https://make.wordpress.org/core/2015/10/23/4-4-taxonomy-roundup/?share=facebook)
 * [  LinkedIn ](https://make.wordpress.org/core/2015/10/23/4-4-taxonomy-roundup/?share=linkedin)

 1.  ![](https://secure.gravatar.com/avatar/522dc9d037e4b0517ee9b76cd63d75a6331b0e578afa9b27fee84b02863ace80?
     s=32&d=mm&r=g)
 2.   [Varun Sridharan](https://profiles.wordpress.org/varunms/)  2:33 pm _on_ October
     23, 2015
 3.  Prefect improvement
 4.  ![](https://secure.gravatar.com/avatar/d94bdc8e970ce9c05a299f54838f522dafcf3d9379cfbea2ca2c848497bb6732?
     s=32&d=mm&r=g)
 5.   [leemon](https://profiles.wordpress.org/leemon/)  2:36 pm _on_ October 23, 2015
 6.  Great!!!
 7.  ![](https://secure.gravatar.com/avatar/d83e6c5e7f1352050e6480e1efd50cd700448d09d661bd67a4452782424b5d2f?
     s=32&d=mm&r=g)
 8.   [davidshq](https://profiles.wordpress.org/davidshq/)  2:47 pm _on_ October 23,
     2015
 9.  Really exciting stuff, thanks so much Boone & co.!
 10. ![](https://secure.gravatar.com/avatar/0608b540c7da83b396fd9a453ad1ac0298152522bc3a06888d41649e4024a089?
     s=32&d=mm&r=g)
 11.  [Ahmad Awais](https://profiles.wordpress.org/mrahmadawais/)  2:57 pm _on_ October
     23, 2015
 12. Exciting stuff is coming in 4.4 🙂
 13. ![](https://secure.gravatar.com/avatar/31a2cdaec46d19a16808089cbbf0ea1bda3d9b84b8f35aa1c7e61c22f768c5d0?
     s=32&d=mm&r=g)
 14.  [jadpm](https://profiles.wordpress.org/jadpm/)  3:48 pm _on_ October 23, 2015
 15. Fantastic! Really glad this is getting into coreCore Core is the set of software
     required to run WordPress. The Core Development Team builds WordPress. this fast
     🙂 Thanks everyone involved.
 16. ![](https://secure.gravatar.com/avatar/1eec1d37f804702db2a028057c942a652a3a7ac8250c35b39f7e0869526f4774?
     s=32&d=mm&r=g)
 17.  [Adriano Ferreira](https://profiles.wordpress.org/adrianosilva/)  4:58 pm _on_
     October 23, 2015
 18. That’s fantastic. Fingers crossed to test / support it on Toolset plugins 🙂
 19. ![](https://secure.gravatar.com/avatar/d695f302425899d7a23cf435fdbf36aaa873c9cb5f049e3ce5f231e8d6f4bc71?
     s=32&d=mm&r=g)
 20.  [simonrcodrington](https://profiles.wordpress.org/simonrcodrington/)  9:57 pm
     _on_ October 23, 2015
 21. Thanks for the update, really looking forward to the updates to taxonomies / term
     metaMeta Meta is a term that refers to the inside workings of a group. For us,
     this is the team that works on internal WordPress sites like WordCamp Central 
     and Make WordPress.. Will be a great step forward to finally have a set standard
     of how to interact with metadata for taxonomies / terms 🙂
 22.  * ![](https://secure.gravatar.com/avatar/a94fbd1c3f3789d764cc118154be3b786de93555aeae814c3b345cfd14b482d5?
        s=32&d=mm&r=g)
      *  [WisdmLabs](https://profiles.wordpress.org/wisdmlabs/)  5:35 am _on_ November
        19, 2015
      * Agreed! Awesome stuff!
 23. ![](https://secure.gravatar.com/avatar/b01ec0896d3867ba97ca655f843bce74d396f9018a844d665e5e513297930de1?
     s=32&d=mm&r=g)
 24.  [Rami Yushuvaev](https://profiles.wordpress.org/ramiy/)  10:49 am _on_ October
     24, 2015
 25. Awesome news!
 26. ![](https://secure.gravatar.com/avatar/66adc8675139306ae2a9e459d672a8184ce2385ec1b143896979de12dae393d3?
     s=32&d=mm&r=g)
 27.  [wpboys](https://profiles.wordpress.org/wpboys/)  7:28 pm _on_ October 24, 2015
 28. Awesome!
 29. ![](https://secure.gravatar.com/avatar/2ad809959fb7c1e8824ae3338f0ee87458a68cfee3fba9260dae7d29d60d8c9d?
     s=32&d=mm&r=g)
 30.  [Gregoire Noyelle](https://profiles.wordpress.org/aglekis/)  8:08 pm _on_ October
     25, 2015
 31. Thank’s a lot Boone. That’s a very good new for Accented characters: french, spanish….
     🙂
 32. ![](https://secure.gravatar.com/avatar/32c5cc7746882995949359e61e2eb608a441551274a86242ecb9d04720bbf333?
     s=32&d=mm&r=g)
 33.  [Justin Sternberg](https://profiles.wordpress.org/jtsternberg/)  4:54 pm _on_
     October 27, 2015
 34. Pretty awesome stuff! [CMB2 now supports term meta out of the box](https://github.com/WebDevStudios/CMB2/commit/5f8e85398c6641f50a703ea2f3caf0b210d13aea)!
 35. ![](https://secure.gravatar.com/avatar/ba026393708dd6ff553a40a9673dee6654c66067aaecae432ee95ddf9dcbf184?
     s=32&d=mm&r=g)
 36.  [Paul Menard](https://profiles.wordpress.org/pmenard/)  11:56 pm _on_ November
     14, 2015
 37. I’ve been looking and for some reason cannot find an answer. With the new term
     metaMeta Meta is a term that refers to the inside workings of a group. For us,
     this is the team that works on internal WordPress sites like WordCamp Central 
     and Make WordPress. will there be changes to WP_Query to include hooksHooks In
     WordPress theme and development, hooks are functions that can be applied to an
     action or a Filter in WordPress. Actions are functions performed when a certain
     event occurs in WordPress. Filters allow you to modify certain functions. Arguments
     used to hook both filters and actions look the same. for the new term meta?
 38.  * ![](https://secure.gravatar.com/avatar/ba026393708dd6ff553a40a9673dee6654c66067aaecae432ee95ddf9dcbf184?
        s=32&d=mm&r=g)
      *  [Paul Menard](https://profiles.wordpress.org/pmenard/)  11:58 pm _on_ November
        14, 2015
      * Never mind. Just reread this. Awesome.
 39. ![](https://secure.gravatar.com/avatar/1beda14f19fa93030ba2c66359dc270286820af6c667cdfeb4e87833c747f3a0?
     s=32&d=mm&r=g)
 40.  [royho](https://profiles.wordpress.org/royho/)  12:39 am _on_ November 19, 2015
 41. Been waiting for this feature!! Awesome!
 42. ![](https://secure.gravatar.com/avatar/62cd769e94e68c9ad79cf1be147715db400ce679508d5ae4783dea4a930e9b21?
     s=32&d=mm&r=g)
 43.  [Armando Duran](https://profiles.wordpress.org/armandoduran/)  6:11 pm _on_ November
     22, 2015
 44. This such an awesome improvement!
 45. ![](https://secure.gravatar.com/avatar/aa91302e95efda0d377ebb15ad392b343ddd3c7463a675a85ea7e62e8b3ab551?
     s=32&d=mm&r=g)
 46.  [Peter Touw](https://profiles.wordpress.org/petertouw/)  4:28 pm _on_ December
     11, 2015
 47. Hi WP-developers,
      Not sure I can drop this here, correct my when I’m wrong. I
     upgraded to 4.4. For some reason the Tag Cloud WidgetWidget A WordPress Widget
     is a small block that performs a specific function. You can add these widgets 
     in sidebars also known as widget-ready areas on your web page. WordPress widgets
     were originally created to provide a simple and easy-to-use way of giving design
     and structure control of the WordPress theme to the user. doesn’t works that well.
     Normally I change a few tagtag A directory in Subversion. WordPress uses tags 
     to store a single snapshot of a version (3.6, 3.6.1, etc.), the common convention
     of tags in version control systems. (Not to be confused with post tags.) cloud
     arguments (smallest,largest,unit) by add_filter(‘widget_tag_cloud_args’,’my_function’);
     Now my Tag Cloud Widget in the sidebarSidebar A sidebar in WordPress is referred
     to a widget-ready area used by WordPress themes to display information that is
     not a part of the main content. It is not always a vertical column on the side.
     It can be a horizontal rectangle below or above the content area, footer, header,
     or any where in the theme. doesn’t display the way it did in 4.3, no title. When
     I do not use my function it looks ok in 4.4. Can somebody look into this? Thanks,
     Peter.
 48. ![](https://secure.gravatar.com/avatar/a30e41415bff5a23a9a18d6273f148bb1a0181babbc34b3e4943581f94e42819?
     s=32&d=mm&r=g)
 49.  [jutta0303](https://profiles.wordpress.org/jutta0303/)  11:22 pm _on_ December
     21, 2015
 50. Has anyone else noticed that post tags are no longer showing up in alphabetical
     order in the post metaMeta Meta is a term that refers to the inside workings of
     a group. For us, this is the team that works on internal WordPress sites like 
     WordCamp Central and Make WordPress.? I’d love a fix for this. One of my blogs
     relies on alphabetized tags! Thanks.
 51.  * ![](https://secure.gravatar.com/avatar/5cc12be051fe02dec266f899b7613325ff3b12b6f6e4f1a85850ed677216cf17?
        s=32&d=mm&r=g)
      *  [Boone Gorges](https://profiles.wordpress.org/boonebgorges/)  1:32 am _on_
        December 22, 2015
      * You can track this issue in [https://core.trac.wordpress.org/ticket/35180](https://core.trac.wordpress.org/ticket/35180).
         - ![](https://secure.gravatar.com/avatar/a30e41415bff5a23a9a18d6273f148bb1a0181babbc34b3e4943581f94e42819?
           s=32&d=mm&r=g)
         -  [jutta0303](https://profiles.wordpress.org/jutta0303/)  4:43 pm _on_ December
           22, 2015
         - Thank you Boone!
 52. ![](https://secure.gravatar.com/avatar/16705255de5e48f90ca378a96b7aed0ab0cd3a477502ed30800b35596c4e1b92?
     s=32&d=mm&r=g)
 53.  [George Notaras](https://profiles.wordpress.org/gnotaras/)  7:55 pm _on_ February
     5, 2016
 54. Hi [@boonebgorges](https://profiles.wordpress.org/boonebgorges/)
 55. This is so great!
 56. I have a question ( not really sure if this is the right place to ask this). Is
     there a way to retrieve an array of all metaMeta Meta is a term that refers to
     the inside workings of a group. For us, this is the team that works on internal
     WordPress sites like WordCamp Central and Make WordPress. fields that are associated
     to a specific term, like what the get_post_custom_keys() is doing for post objects?
 57. George

Comments are closed.

# Post navigation

[← Document title in 4.4](https://make.wordpress.org/core/2015/10/20/document-title-in-4-4/)

[WP REST API: Version 2.0 Beta 5 →](https://make.wordpress.org/core/2015/10/23/wp-rest-api-version-2-0-beta-5/)