get_registered_metadata


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

Parameters:
  • (string) $object_type Type of object to request metadata for. (e.g. comment, post, term, user)
  • (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.
Returns:
  • (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.
Defined at:

Description

Retrieves registered metadata for a specified object.

Related Functions

get_registered_meta_keys, get_registered_settings, get_registered_nav_menus, register_meta, get_metadata

Top Google Results

User discussions

wpseek mobile