[wp-trac] [WordPress Trac] #35658: Provide additional data for registered meta through register_meta()

WordPress Trac noreply at wordpress.org
Thu Jun 30 01:01:37 UTC 2016


#35658: Provide additional data for registered meta through register_meta()
-------------------------------------------------+-------------------------
 Reporter:  jeremyfelt                           |       Owner:  jeremyfelt
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  4.6
Component:  Options, Meta APIs                   |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  needs-unit-tests needs-testing has-  |     Focuses:
  patch rest-api                                 |
-------------------------------------------------+-------------------------

Comment (by helen):

 In [changeset:"37924"]:
 {{{
 #!CommitTicketReference repository="" revision="37924"
 Introduce an expanded meta registration API.

 `register_meta()` has been altered to accept an array of arguments as the
 third parameter in order to support its usage beyond XML-RPC, notably in
 the REST API and other projects that may build on top of meta, such as a
 potential Fields API. Arguments are whitelisted to reserve the right for
 core to add more later.

 New functions added to complement this expansion are:
 * `registered_meta_key_exists()`
 * `unregister_meta_key()`
 * `get_registered_meta_keys()`
 * `get_registered_metadata()`
 * A "private" function for the aforementioned whitelisting.

 There still need to be lots of tests written for previous and new
 behaviors, and many things are subject to change. Maybe things will
 explode. #yolo

 props jeremyfelt, ericlewis, sc0ttkclark, helen, rmccue, ocean90,
 voldemortensen.
 see #35658.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35658#comment:73>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list