Skip to content

Commit

Permalink
whitelist /cart endpoint for capability API.
Browse files Browse the repository at this point in the history
  • Loading branch information
aashishgurung committed Nov 11, 2024
1 parent e60ca98 commit 26fdef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-omise-capabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public static function isFromCheckoutPage()
return false;
}

$endpoints = ['checkout', 'batch', 'cart/select-shipping-rate'];
$endpoints = ['checkout', 'batch', 'cart', 'cart/select-shipping-rate'];

foreach($endpoints as $endpoint) {
if (trim($wp->request) !== '') {
Expand Down

0 comments on commit 26fdef8

Please sign in to comment.