Skip to content

Commit

Permalink
Add action hook for defining WC rate limit hooks
Browse files Browse the repository at this point in the history
resolves action hook 1: BrianHenryIE#20
  • Loading branch information
capuderg authored Feb 3, 2023
1 parent 2f361dd commit e294787
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/class-bh-wc-checkout-rate-limiter.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ protected function define_woocommerce_ajax_hooks(): void {
$ajax = new Ajax( $this->settings, $this->logger );

add_action( 'wc_ajax_checkout', array( $ajax, 'rate_limit_checkout' ), 0 );

do_action( 'bh_wcr_define_woocommerce_ajax_hooks', $ajax );
}

/**
Expand Down

0 comments on commit e294787

Please sign in to comment.