From eb44ac748779f2f4afb51e1d3d9b0aa5c007a1d5 Mon Sep 17 00:00:00 2001 From: himanshupathak95 Date: Fri, 10 Jan 2025 09:23:05 +0530 Subject: [PATCH] Docs: Add post meta limitations to Block Bindings API docs --- docs/reference-guides/block-api/block-bindings.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/reference-guides/block-api/block-bindings.md b/docs/reference-guides/block-api/block-bindings.md index c26ade45e8b5e3..d5610af9a4b5a2 100644 --- a/docs/reference-guides/block-api/block-bindings.md +++ b/docs/reference-guides/block-api/block-bindings.md @@ -20,6 +20,9 @@ An example could be connecting an Image block `url` attribute to a function that } --> ``` +
+Note: Post meta keys that begin with an underscore (e.g. `_example_key`) are protected and cannot be used with Block Bindings. Additionally, post meta must be registered with `show_in_rest = true` to be available through the Block Bindings API. +
## Compatible blocks and their attributes