get_registered_metadata ( $object_type, $object_id, $meta_key = '' )

  • (string) object_type Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', or any other object type with an associated meta table.
  • (int) object_id ID of the object the metadata is for.
  • (string) meta_key Optional. Registered metadata key. If not specified, retrieve all registered metadata for the specified object.
  • (mixed) A single value or array of values for a key if specified. An array of all registered keys and values for an object ID if not. False if a given $meta_key is not registered.
Defined at:


Retrieves registered metadata for a specified object.The results include both meta that is registered specifically for the object's subtype and meta that is registered for the entire object type.

Related Functions

get_registered_meta_keys, get_registered_settings, get_registered_theme_feature, get_registered_theme_features, get_registered_nav_menus

Top Google Results

User discussions

wpseek mobile