{"id":19009223,"date":"2026-09-02T06:52:07","date_gmt":"2026-09-02T06:52:07","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=topic&#038;p=19009223"},"modified":"2026-09-02T07:25:56","modified_gmt":"2026-09-02T07:25:56","slug":"update-block-api-version-to-3-for-gutenberg-blocks","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/update-block-api-version-to-3-for-gutenberg-blocks\/","title":{"rendered":"Update Block API Version to 3 for Gutenberg Blocks"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hello,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I am reaching out to report a deprecation warning in the Gutenberg editor when using the Klaviyo plugin on WordPress 6.9+ and WordPress 7.0, and to suggest updating the Block API version.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Current Implementation<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Currently, Klaviyo Gutenberg blocks are registered using Block API version 2. When editing pages containing these blocks in WordPress 6.9 or newer, WordPress triggers a deprecation warning in the editor console.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Affected Blocks:<\/strong><\/p>\n\n\n\n<ul>\n<li>klaviyo\/klaviyo-checkout-block<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Proposed Enhancement<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Please update the apiVersion parameter to version 3 for all registered Gutenberg blocks in the plugin and test block behavior inside the iframe editor to maintain full forward compatibility with WordPress.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Technical Notes<\/strong><\/p>\n\n\n\n<ul>\n<li><strong>Console Warning:<\/strong> Block with API version 2 or lower is deprecated since version 6.9. Note: The block &#8220;klaviyo\/klaviyo-checkout-block&#8221; is registered with API version 2. This means that the post editor may work as a non-iframe editor. Since all editors are planned to work as iframes in the future, set the apiVersion field to 3 and test the block inside the iframe editor. (<a href=\"https:\/\/ibb.co\/VcQN3tVc\">Screenshot<\/a>)<\/li>\n\n\n\n<li><strong>Documentation Reference:<\/strong> <a href=\"https:\/\/developer.wordpress.org\/block-editor\/reference-guides\/block-api\/block-api-versions\/block-migration-for-iframe-editor-compatibility\/\">https:\/\/developer.wordpress.org\/block-editor\/reference-guides\/block-api\/block-api-versions\/block-migration-for-iframe-editor-compatibility\/<\/a><\/li>\n\n\n\n<li><strong>WordPress Version:<\/strong> 7.0 (Deprecated since 6.9)<\/li>\n\n\n\n<li><strong>Klaviyo Plugin Version:<\/strong> 3.8.3<\/li>\n<\/ul>\n","protected":false},"template":"","class_list":["post-19009223","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19009223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19009223\/revisions"}],"predecessor-version":[{"id":19009250,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19009223\/revisions\/19009250"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19009223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}