[wp-trac] [WordPress Trac] #41253: category meta endpoint always returns an empty array
WordPress Trac
noreply at wordpress.org
Thu Jul 6 02:08:33 UTC 2017
#41253: category meta endpoint always returns an empty array
--------------------------+-----------------------------
Reporter: MrG0lden | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.8
Severity: normal | Keywords:
Focuses: rest-api |
--------------------------+-----------------------------
As the title says, when I use categories route "/wp/v2/categories/" it
returns an array of "category" objects, as stated in the documentation.
But it always returns an empty array for meta object, whether it has meta
fields or not. However, when I use get_term_meta() I get an associative
array that contains all meta fields as key => value pairs -as expected-.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41253>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list