wordpress-blocks

Recent in

wordpress-blocks

Saving Settings for a Custom WordPress Block in the Block Editor
WordPress-blocks

Saving Settings for a Custom WordPress Block in the Block Editor

https://css-tricks.com

We’ve accomplished a bunch of stuff in this series! We created a custom WordPress block that fetches data from an external API and renders it on the front end. Then we took that work and extended it so the data also renders directly in the WordPress block editor. After that, we created a settings UI for the block using components from the WordPress InspectorControls package.There’s one last bit for us to cover and that’s saving the settings options. If we recall from the last article, we’re technically able to “save” our selections in the block settings UI, but those aren’t actually stored anywhere.

Manoj KumarDec 12, 2022
Newsletter

Let's keep in touch

Benefit from a weekly updates, coding challenges and helpful resources around software development.

Your privacy is important to us. We promise not to send you spam!