From 53fb9d6b5b262b4292067de696dcd99905f8a6f0 Mon Sep 17 00:00:00 2001 From: vytisbulkevicius <36594177+vytisbulkevicius@users.noreply.github.com> Date: Fri, 22 Nov 2024 20:15:30 +0200 Subject: [PATCH] Update web_stories.php --- inc/compatibility/web_stories.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/compatibility/web_stories.php b/inc/compatibility/web_stories.php index e287645e5f..430c67c42d 100644 --- a/inc/compatibility/web_stories.php +++ b/inc/compatibility/web_stories.php @@ -37,7 +37,7 @@ private function should_load() { * Load hooks. */ private function load_hooks() { - add_action( 'init', array( $this, 'setup' ) ); + add_action( 'after_setup_theme', array( $this, 'setup' ) ); add_action( 'wp_body_open', array( $this, 'embed' ) ); }