Skip to content

Commit

Permalink
Add action hook for rate limit exceeded
Browse files Browse the repository at this point in the history
resolves action hook 2: BrianHenryIE#20
  • Loading branch information
capuderg authored Feb 3, 2023
1 parent 2f361dd commit 896ec52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/woocommerce/class-ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ public function rate_limit_checkout(): void {
'ip_address' => $ip_address,
)
);

do_action( 'bh_wcr_checkout_rate_limit_exceeded', $rate_limiter );

// No real point adding headers here.
wp_send_json_error( null, 429 );
Expand Down

0 comments on commit 896ec52

Please sign in to comment.