Skip to content

Commit

Permalink
fix: resolved issue with neve-pro-addons
Browse files Browse the repository at this point in the history
  • Loading branch information
girishpanchal30 committed Nov 21, 2024
1 parent e3b750c commit c45b26f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions inc/admin/dashboard/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ] );
Expand Down
10 changes: 8 additions & 2 deletions start.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -71,5 +78,4 @@ function neve_run() {
\Neve_Pro\Core\Loader::instance();
}
}

neve_run();
add_action( 'after_setup_theme', 'neve_core_loader' );

0 comments on commit c45b26f

Please sign in to comment.