Skip to content

Commit

Permalink
move constants that dont require container to bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
circlecube committed May 24, 2024
1 parent f5e3a0e commit 8b7a315
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

namespace NewfoldLabs\WP\Module\HelpCenter;

// Define global constants
define( 'NFD_HELPCENTER_DIR', __DIR__ );
define( 'NFD_HELPCENTER_BUILD_DIR', __DIR__ . '/build/' );

// Register the HelpCenterFeature class in the features filter
if ( function_exists( 'add_filter' ) ) {
add_filter(
'newfold/features/filter/register',
Expand Down
2 changes: 0 additions & 2 deletions includes/HelpCenterFeature.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ public function initialize() {
function () {
$container = getContainer();
define( 'NFD_HELPCENTER_PLUGIN_DIRNAME', dirname( $container->plugin()->basename ) );
define( 'NFD_HELPCENTER_DIR', __DIR__ );
define( 'NFD_HELPCENTER_BUILD_DIR', __DIR__ . '/build/' );
define( 'NFD_HELPCENTER_PLUGIN_URL', $container->plugin()->url );
new HelpCenter( $container );
// Define the brand
Expand Down

0 comments on commit 8b7a315

Please sign in to comment.