[wp-trac] [WordPress Trac] #43941: Add default value to register meta

WordPress Trac noreply at wordpress.org
Thu Mar 5 19:01:21 UTC 2020


#43941: Add default value to register meta
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:
                                                 |  spacedmonkey
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Options, Meta APIs                   |     Version:  4.6
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests early       |     Focuses:  rest-api
  needs-dev-note needs-refresh                   |
-------------------------------------------------+-------------------------

Comment (by mnelson4):

 @johnjamesjacoby what do you think about adding a new parameter onto
 `get_metadata` that would get the unfiltered value? Otherwise we're
 needing to unhook and rehook filters like in
 https://core.trac.wordpress.org/attachment/ticket/43941/43941.9.diff

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


More information about the wp-trac mailing list