From a646506adab551ec45a2832e1412d13e2d7109e1 Mon Sep 17 00:00:00 2001 From: Julien SEIXAS <32927775+MrZyr0@users.noreply.github.com> Date: Thu, 21 Nov 2024 09:41:27 +0100 Subject: [PATCH] docs: add specific gutenberg block id declaration to its page --- src/learn/containers/gutenberg-blocks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/learn/containers/gutenberg-blocks.md b/src/learn/containers/gutenberg-blocks.md index 9be8ba1..a7736ee 100644 --- a/src/learn/containers/gutenberg-blocks.md +++ b/src/learn/containers/gutenberg-blocks.md @@ -12,7 +12,7 @@ In order to create a new Gutenberg Block you can still use the already familiar use Carbon_Fields\Block; use Carbon_Fields\Field; -Block::make( __( 'My Shiny Gutenberg Block' ) ) +Block::make( 'my-shiny-gutenberg-block-id', __( 'My Shiny Gutenberg Block' ) ) ->add_fields( array( Field::make( 'text', 'heading', __( 'Block Heading' ) ), Field::make( 'image', 'image', __( 'Block Image' ) ),