Skip to content

Commit

Permalink
Add additional clarifying text
Browse files Browse the repository at this point in the history
  • Loading branch information
artemiomorales committed Jun 17, 2024
1 parent 9933b92 commit f94b3a6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ By registering your own block variation with some specific Query Loop block sett

With the block variations API you can provide the default settings that make the most sense for your use-case.

In order to have a Query Loop variation properly working, we'll need to:
- Register the block variation for the `core/query` block with some default values
- Define a layout for the block variation
- Use the `namespace` attribute in the `isActive` block variation property

Let's go on a journey, for example, of setting up a variation for a plugin which registers a `book` [custom post type](https://developer.wordpress.org/plugins/post-types/).

### 1. Offer sensible defaults
Expand Down

0 comments on commit f94b3a6

Please sign in to comment.