Filters whether a meta key is considered protected.
Parameters
$protectedbool- Whether the key is considered protected.
$meta_keystring- Metadata key.
$meta_typestring- Type of object metadata is for. Accepts
'post','comment','term','user', or any other object type with an associated meta table.
Source
return apply_filters( 'is_protected_meta', $protected, $meta_key, $meta_type );
Changelog
| Version | Description |
|---|---|
| 3.2.0 | Introduced. |
Example of 2 meta fields that you want to set as protected: