Detect selected block pattern from a specific Pattern category
Question
It is possible to detect when the Inserter panel is opened. It can be done using the following code snippet:
wp.data.select( 'core/edit-post' ).isInserterOpened()
However, I am wondering if there is an event in wp.data
that allows to detect if the user has selected a block pattern (via Patterns tab) from a specific category (for instance, the Query category).
0
9 months
2022-04-21T17:08:57-05:00
2022-04-21T17:08:57-05:00 0 Answers
0 views
0
Leave an answer