Skip to content

Commit

Permalink
fix: Tweaked plugin initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
seebeen committed May 3, 2024
1 parent 05c20ee commit 30f5761
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions serbian-addons-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
defined( 'WCRS_PLUGIN_PATH' ) || define( 'WCRS_PLUGIN_PATH', plugin_dir_path( WCRS_PLUGIN_FILE ) );
defined( 'WCRS_VERSION' ) || define( 'WCRS_VERSION', '3.4.0' );

require __DIR__ . '/vendor/autoload_packages.php';

add_action( 'woocommerce_loaded', 'WCSRB', 0 );
add_action(
'woocommerce_loaded',
static function () {
require __DIR__ . '/vendor/autoload_packages.php';
\WCSRB();
},
20,
);

0 comments on commit 30f5761

Please sign in to comment.