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.
Returns:
  • (mixed) Sanitized $meta_value.
Defined at:
Change Log:
  • 4: .

Description

Sanitizes meta value.

Related Functions

sanitize_email, sanitize_key, sanitize_mime_type, sanitize_user, sanitize_post

Top Google Results

User discussions

wpseek mobile