[wp-trac] [WordPress Trac] #37885: Build out register_setting like register_meta

WordPress Trac noreply at wordpress.org
Tue Sep 20 20:51:19 UTC 2016


#37885: Build out register_setting like register_meta
--------------------------------+-----------------------
 Reporter:  joehoyle            |       Owner:  joehoyle
     Type:  enhancement         |      Status:  closed
 Priority:  normal              |   Milestone:  4.7
Component:  Options, Meta APIs  |     Version:  trunk
 Severity:  normal              |  Resolution:  fixed
 Keywords:  has-patch commit    |     Focuses:
--------------------------------+-----------------------
Changes (by joehoyle):

 * owner:   => joehoyle
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"38635"]:
 {{{
 #!CommitTicketReference repository="" revision="38635"
 Options: Build out register_setting like register_meta.

 `register_setting` can now be passed an array arguments to specify meta-
 data about the setting,
 much like using the `register_meta` API. Of note, it will now accept a
 `show_in_rest` arg to
 hint the inclusion of the setting in the REST API.
 `get_registered_settings()` is available
 as a utility to get all registered settings.

 Props rmccue, aaroncampbell.
 Fixes #37885.
 }}}

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


More information about the wp-trac mailing list