Skip to content

Commit

Permalink
📝 Update the block localize example
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x committed Aug 13, 2024
1 parent 0ce681c commit f687925
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f687925

Please sign in to comment.