diff --git a/load.php b/load.php index b4ea5b1..0d533c4 100644 --- a/load.php +++ b/load.php @@ -7,6 +7,11 @@ require_once __DIR__ . '/inc/namespace.php'; +// Don't self-initialize if this is not a Platform execution. +if ( ! function_exists( 'add_action' ) ) { + return; +} + add_action( 'hm-platform.modules.init', function () { $default_settings = [ 'enabled' => in_array( get_environment_architecture(), [ 'chassis', 'local-server' ] ),