From ac231028cc58384dfee1e770e07e5f135513f150 Mon Sep 17 00:00:00 2001 From: Yusuf Fauzan Date: Mon, 19 Sep 2022 06:44:53 +0700 Subject: [PATCH] Change the load_option_builder hook to `init` --- src/Bootstrap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bootstrap.php b/src/Bootstrap.php index fc70695..0253bcc 100644 --- a/src/Bootstrap.php +++ b/src/Bootstrap.php @@ -53,7 +53,7 @@ private function __construct() { /** * Load option builder */ - add_action( 'after_setup_theme', array( $this, 'load_option_builder' ), 1 ); + add_action( 'init', array( $this, 'load_option_builder' ), 1 ); } /** @@ -75,7 +75,7 @@ public static function run() { } /** - * OptionBuilder loads on the 'after_setup_theme' action. + * OptionBuilder loads on the 'init' action. * * @access public * @since 1.0.0