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.


Top ↑

Source

File: wp-includes/meta.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.