Thanks for the reminder, I was in a rush this morning and forgot to add the description. RUclips doesn't allow the > character in video descriptions unfortunately, so I had to add it via a pastebin link.
When registering a block variation you can specify a custom icon (dashicons) or SVG image. Here's the relevant page from the codex: developer.wordpress.org/block-editor/reference-guides/block-api/block-variations/
Hey Matt, thanks for sharing your knowledge again. Just a heads up the PHP code is not in the video description yet.
Thanks for the reminder, I was in a rush this morning and forgot to add the description. RUclips doesn't allow the > character in video descriptions unfortunately, so I had to add it via a pastebin link.
Great tutorial, thanx. But I've got a question: how can I edit btn preview-image in sidebar?
When registering a block variation you can specify a custom icon (dashicons) or SVG image. Here's the relevant page from the codex:
developer.wordpress.org/block-editor/reference-guides/block-api/block-variations/