From f687925a3553f6573e471f8e1a8e46d5834f6538 Mon Sep 17 00:00:00 2001 From: Brandon Date: Tue, 13 Aug 2024 01:05:58 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Update=20the=20block=20localize?= =?UTF-8?q?=20example?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d20eb4d..019648a 100644 --- a/README.md +++ b/README.md @@ -253,10 +253,10 @@ class ExampleBlock extends Block } ``` -You may also pass `--construct` to the command above to generate a stub with the block properties set within an `attributes` method. This can be useful for localization, etc. +You may also pass `--localize` to the command above to generate a block stub with the name and description ready for translation. ```bash -$ wp acorn acf:block Example --construct +$ wp acorn acf:block Example --localize ``` When running the block generator, one difference to a generic field is an accompanied `View` is generated in the `resources/views/blocks` directory.