metadata_exists


metadata_exists ( $meta_type, $object_id, $meta_key )

Parameters:
  • (string) $meta_type Type of object metadata is for (e.g., comment, post, or user)
  • (int) $object_id ID of the object metadata is for
  • (string) $meta_key Metadata key.
Returns:
  • (bool) True of the key is set, false if not.
Defined at:

Description

Determine if a meta key is set for a given object

Related Functions

tag_exists, comment_exists, email_exists, rich_edit_exists, domain_exists

Top Google Results

User discussions

wpseek mobile