HTTP/2 301
server: nginx
date: Fri, 26 Dec 2025 16:59:01 GMT
content-type: text/html; charset=UTF-8
x-olaf: ⛄
vary: accept, content-type
x-redirect-by: WordPress
location: https://developer.wordpress.org/reference/hooks/is_protected_meta/
x-frame-options: SAMEORIGIN
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 2
HTTP/2 200
server: nginx
date: Fri, 26 Dec 2025 16:59:02 GMT
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
x-olaf: ⛄
vary: accept, content-type
link:
; rel="https://api.w.org/"
link:
; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
x-frame-options: SAMEORIGIN
content-encoding: gzip
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 2
is_protected_meta – Hook | Developer.WordPress.org
apply_filters( ‘is_protected_meta’, bool $protected, string $meta_key, string $meta_type )
Filters whether a meta key is considered protected.
$protectedboolWhether the key is considered protected.
$meta_keystringMetadata key.
$meta_typestringType of object metadata is for. Accepts 'post', 'comment', 'term', 'user', or any other object type with an associated meta table.
| Version | Description |
|---|
| 3.2.0 | Introduced. |
Example of 2 meta fields that you want to set as protected: