Skip to content

Commit

Permalink
Merge pull request #505 from omise/update-ajax-actions
Browse files Browse the repository at this point in the history
Add ajax actions on checkout page
  • Loading branch information
Narum11 authored Jan 15, 2025
2 parents 4a2e1ff + e4b1e6e commit ec7a72d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/class-omise-capabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ public static function isFromCheckoutPage()
if (!$wp) {
return false;
}

if (wp_doing_ajax() && $_GET['wc-ajax'] == 'update_order_review') {
$ajaxActions = ['update_order_review', 'checkout'];
if (wp_doing_ajax() && in_array($_GET['wc-ajax'], $ajaxActions)) {
return true;
}

Expand Down

0 comments on commit ec7a72d

Please sign in to comment.