Skip to content

Commit

Permalink
fix hooks arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
luizbills committed Jan 16, 2023
1 parent d85f8d0 commit 777432a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/Integration/Free_Shipping.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static function instance () {

public function __start () {
self::$instace = $this;
add_action( 'wc_shipping_simulator_load_integrations', [ $this, 'add_hooks' ], 10, 2 );
add_action( 'wc_shipping_simulator_load_integrations', [ $this, 'add_hooks' ], 10 );
}

public function is_enabled () {
Expand Down
2 changes: 1 addition & 1 deletion classes/Integration/Melhor_Envio.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static function instance () {
}

public function __start () {
add_action( 'wc_shipping_simulator_load_integrations', [ $this, 'add_hooks' ], 10, 2 );
add_action( 'wc_shipping_simulator_load_integrations', [ $this, 'add_hooks' ], 10 );
}

public function is_enabled () {
Expand Down

0 comments on commit 777432a

Please sign in to comment.