is_protected_meta WordPress Filter Hook
The is_protected_meta hook allows you to filter whether a meta key is considered protected. Protected meta keys are not exposed in the Custom Fields meta box, and are not available for editing via the REST API.
apply_filters( 'is_protected_meta', bool $protected , string $meta_key , string $meta_type ) #
Filters whether a meta key is considered protected.
Parameters
- $protected
(bool)Whether the key is considered protected.
- $meta_key
(string)Metadata key.
- $meta_type
(string)Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', or any other object type with an associated meta table.
Source
File: wp-includes/meta.php
Changelog
Version | Description |
---|---|
3.2.0 | Introduced. |