From f946f7918f3e03de98d8584ed025d3c73983865f Mon Sep 17 00:00:00 2001 From: Hekmat Date: Mon, 25 Sep 2023 01:40:24 +0330 Subject: [PATCH] Modify enqueue_block_assets to init because it doesn't show in admin panel --- inc/classes/class-assets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/classes/class-assets.php b/inc/classes/class-assets.php index 000d471..cd49d2a 100644 --- a/inc/classes/class-assets.php +++ b/inc/classes/class-assets.php @@ -29,7 +29,7 @@ protected function setup_hooks() { * The 'enqueue_block_assets' hook includes styles and scripts both in editor and frontend, * except when is_admin() is used to include them conditionally */ - add_action( 'enqueue_block_assets', [ $this, 'enqueue_editor_assets' ] ); + add_action( 'init', [ $this, 'enqueue_editor_assets' ] ); } public function register_styles() {