[wp-trac] [WordPress Trac] #43069: Docs: improve documentation for register_meta() function

WordPress Trac noreply at wordpress.org
Thu Jan 11 16:23:31 UTC 2018


#43069: Docs: improve documentation for register_meta() function
--------------------------------+-----------------------------
 Reporter:  terriann            |      Owner:
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Options, Meta APIs  |    Version:  4.9.1
 Severity:  normal              |   Keywords:
  Focuses:  docs                |
--------------------------------+-----------------------------
 The documentation for the `register_meta()` function would benefit from
 additional clarity to help developers recognize that the `$object_type`
 parameter does not mean custom post type and the implications that
 registering the meta field applies to all objects of a type.

 Within that method there are also missing default values and optional
 markers in the docblock as well as a backwards compatibility comment that
 could be more specific and useful in an inline comment.

 https://developer.wordpress.org/reference/functions/register_meta/

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43069>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list