[wp-trac] [WordPress Trac] #40318: Document valid `type` parameters in register_meta() arguments
WordPress Trac
noreply at wordpress.org
Thu Mar 30 18:01:49 UTC 2017
#40318: Document valid `type` parameters in register_meta() arguments
--------------------------------+-----------------------------
Reporter: iandunn | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Options, Meta APIs | Version:
Severity: normal | Keywords:
Focuses: docs |
--------------------------------+-----------------------------
The valid types aren't documented, so I had to go digging through the
source to find them.
The REST API defines them as `'string', 'boolean', 'integer', 'number'` in
[https://core.trac.wordpress.org/browser/tags/4.7.3/src/wp-includes/rest-
api/fields/class-wp-rest-meta-fields.php#L361 class-wp-rest-meta-
fields.php]
I haven't verified that there aren't other valid types used outside the
API.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40318>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list