-
Notifications
You must be signed in to change notification settings - Fork 32
04 Why an ID for every example?
IDs are a great way to provide structure to this monorepo. It simplifies naming and referencing examples while it smooth the experience of locating plugins and blocks inside WordPress installations.
If you install several plugin examples in a WordPress installation it's easier to locate them by their ID to activate/deactivate them.
Blocks can also be located through their ID, so when you want to insert a specific block example, just search the block in the inserter by using its ID.
Naming each example gets easier by providing an ID to each example as it avoids collision between them.
Having an ID per example allows this project to scale while keeping a good experience locating and referencing the examples. It won't matter if there are 10 or 100 examples as every example is easily located by their unique ID
Through pmpm
we can filter commands for especific examples per ID as explained here