Core Function
View Source on Trac ↗ get_registered_meta_keys()
get_registered_meta_keys( mixed $object_type, mixed $object_subtype = '' ) Retrieves a list of registered metadata args for an object type, keyed by their meta keys.
Parameters 1 required
| Name / Type | Description |
|---|---|
| string | $object_type Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', or any other object type with an associated meta table. Required |
| $object_subtype string | Optional. The subtype of the object type. Default empty string. |
Return Value
(array[])
List of registered metadata args, keyed by their meta keys.
Function Information
Since Version
4.6.0
Source File
wp-includes/meta.php
Advertisement