sanitize_meta


sanitize_meta ( $meta_key, $meta_value, $object_type, $object_subtype = '' )

Parameters:
  • (string) meta_key Metadata key.
  • (mixed) meta_value Metadata value to sanitize.
  • (string) object_type Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', or any other object type with an associated meta table.
  • (string) object_subtype Optional. The subtype of the object type. Default empty string.
Returns:
  • (mixed) Sanitized $meta_value.
Defined at:
Change Log:
  • 4: .

Description

Sanitizes meta value.

Related Functions

sanitize_email, sanitize_key, sanitize_post, sanitize_user, sanitize_mime_type

Top Google Results

User discussions

wpseek mobile