Skip to content

Commit

Permalink
changing admin_init hook to init
Browse files Browse the repository at this point in the history
  • Loading branch information
ramyakrishnai committed Sep 18, 2024
1 parent 63bcc01 commit 92bd339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/ECommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function __construct( Container $container ) {
add_action( 'admin_enqueue_scripts', array( $this, 'set_wpnav_collapse_setting' ) );
add_action('admin_footer', array( $this, 'remove_woocommerce_ssl_notice' ), 20);

add_action( 'admin_init', array( $this, 'admin_init_conditional_on_capabilities' ) );
add_action( 'init', array( $this, 'admin_init_conditional_on_capabilities' ) );

// Handle WonderCart Integrations
if ( is_plugin_active( 'wonder-cart/init.php' ) ) {
Expand Down

0 comments on commit 92bd339

Please sign in to comment.