Skip to content

Commit

Permalink
Exit if accessed directly.
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHenryIE committed Oct 22, 2024
1 parent 93e1bce commit 6c44b7d
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@

use function NewfoldLabs\WP\ModuleLoader\register;

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
return;
}

/**
* Register Onboarding with Newfold Module Loader
*
Expand Down Expand Up @@ -65,11 +70,10 @@ function nfd_wp_module_onboarding_register() {
/**
* Tap WordPress Hooks to Instantiate Module Loader
*/
if ( is_callable( 'add_action' ) ) {
add_action(
'plugins_loaded',
'nfd_wp_module_onboarding_register'
);
// Handle Module Disable if Non-Ecommerce
ModuleController::init();
add_action(
'plugins_loaded',
'nfd_wp_module_onboarding_register'
);
// Handle Module Disable if Non-Ecommerce
ModuleController::init();
}

0 comments on commit 6c44b7d

Please sign in to comment.