From c45b26fc679314bfc2bbdc90962545e1545ff744 Mon Sep 17 00:00:00 2001 From: girishpanchal30 Date: Thu, 21 Nov 2024 14:26:42 +0530 Subject: [PATCH] fix: resolved issue with neve-pro-addons --- inc/admin/dashboard/main.php | 1 + start.php | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/inc/admin/dashboard/main.php b/inc/admin/dashboard/main.php index ccd65b8f8f..1f06563171 100755 --- a/inc/admin/dashboard/main.php +++ b/inc/admin/dashboard/main.php @@ -81,6 +81,7 @@ public function __construct() { */ public function init() { + $this->setup_config(); add_action( 'init', [ $this, 'setup_config' ] ); add_action( 'admin_menu', [ $this, 'register' ] ); add_action( 'admin_enqueue_scripts', [ $this, 'enqueue' ] ); diff --git a/start.php b/start.php index 00f352ddf1..1e2e26eb27 100644 --- a/start.php +++ b/start.php @@ -53,7 +53,14 @@ function neve_run() { } $autoloader->register(); +} + +neve_run(); +/** + * Load core modules. + */ +function neve_core_loader() { if ( class_exists( '\\Neve\\Core\\Core_Loader' ) ) { new \Neve\Core\Core_Loader(); } @@ -71,5 +78,4 @@ function neve_run() { \Neve_Pro\Core\Loader::instance(); } } - -neve_run(); +add_action( 'after_setup_theme', 'neve_core_loader' );