From 8dc982c8c7cc3aa7178be45563bfd195e3202f1b Mon Sep 17 00:00:00 2001 From: Antoine M Date: Tue, 5 Nov 2024 13:14:47 +0100 Subject: [PATCH] updating categories Icons --- resources/js/editor.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 resources/js/editor.js diff --git a/resources/js/editor.js b/resources/js/editor.js new file mode 100644 index 0000000..e0d261d --- /dev/null +++ b/resources/js/editor.js @@ -0,0 +1,24 @@ +export default function editorInit() { + categoriesInit(); +} + +function categoriesInit() { + wp.blocks.updateCategory('metiers-patrimoine-blocks', { + icon: ( + + + + ), + }); +} + +window.addEventListener('DOMContentLoaded', editorInit);