From 0c40efd565dbacd639cb756013a7759b3fc3f565 Mon Sep 17 00:00:00 2001 From: Daniel Waxweiler Date: Sat, 9 Nov 2024 22:32:53 +0100 Subject: [PATCH] load block script only in footer --- source/includes/EventsListBlock.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/includes/EventsListBlock.php b/source/includes/EventsListBlock.php index 1502afd..c130cf5 100644 --- a/source/includes/EventsListBlock.php +++ b/source/includes/EventsListBlock.php @@ -10,7 +10,7 @@ public static function initAndReturnScriptName(): string { 'wp-blocks', 'wp-components', 'wp-i18n' - ], ''); + ], '', array('in_footer' => true)); register_block_type(NAME . '/events-list', [ 'api_version' => 2, 'title' => __('Events List', 'connector-mobilizon'),