Core Function
View Source on Trac ↗ is_protected_meta()
is_protected_meta( mixed $meta_key, mixed $meta_type = '' ) Determines whether a meta key is considered protected.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $meta_key string | Metadata key. Required |
| string | $meta_type Optional. Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', or any other object type with an associated meta table. Default empty string. Required |
Return Value
(bool)
Whether the meta key is considered protected.
Function Information
Since Version
3.1.3
Source File
wp-includes/meta.php
Advertisement