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: - Introduced in WordPress: 3.1.3
- Deprecated in WordPress: —
Description
Sanitizes meta value.