Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rajeshsingh520/87ae0a23bef8111b09ee607d4d9c5f83 to your computer and use it in GitHub Desktop.
Save rajeshsingh520/87ae0a23bef8111b09ee607d4d9c5f83 to your computer and use it in GitHub Desktop.
disable pickup location loading by ajax
add_filter('woocommerce_update_order_review_fragments',function($fragment){
if(is_array($fragment)){
$fragment['dont_reload_pickup_location'] = true;
}
return $fragment;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment