[wp-trac] [WordPress Trac] #35658: Provide additional data for registered meta through register_meta()
WordPress Trac
noreply at wordpress.org
Fri Jan 29 15:46:55 UTC 2016
#35658: Provide additional data for registered meta through register_meta()
------------------------------------------+------------------------------
Reporter: jeremyfelt | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Options, Meta APIs | Version:
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses:
------------------------------------------+------------------------------
Comment (by jeremyfelt):
`$wp_meta_keys` may be strange because of uniqueness as well. The meta
keys for object types and custom types of those object types need to be
tracked separately.
{{{
$wp_meta_keys = array(
'post' => array(
'post' => array(
'meta_key' => array(
'rest_data_type' => 'string',
'rest_description' => 'This is the description of my
meta',
),
),
'user' => array(
'user' => array(
'meta_key' => array(
'rest_data_type' => 'string',
'rest_description' => 'This is the description of my
meta',
),
),
),
);
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35658#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list