get_registered_meta_keys

SummerySummery

Retrieves a list of registered meta keys for an object type.

Syntax

get_registered_meta_keys( string $object_type, string $object_subtype = '' )

ParametersParameters

$object_type

(string) (Required) Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', or any other object type with an associated meta table.

$object_subtype

(string) (Optional) The subtype of the object type.

Default value: ''

ReturnReturn

(string[]) List of registered meta keys.

SourceSource

File: wp-includes/meta.php


			

ChangelogChangelog

Changelog
Version Description
4.9.8 The $object_subtype parameter was added.
4.6.0 Introduced.
Scroll to Top