-
How to retrieve WordPress data for blocks with the useSelect hook
The useSelect hook allows you to retrieve and subscribe to data from the WordPress data store, and use the data in your block components. Here are some examples of how to use the useSelect hook with WordPress blocks: In summary, the useSelect hook from the @wordpress/data package allows you to retrieve and subscribe to data…
-
How to add gradient text to WordPress blocks
Here’s a simple CSS trick to add support for gradient text in WordPress that can be customized using only core block features. This example uses the Heading block