From 56d5b9e37c685c333996843bea1b47765251a787 Mon Sep 17 00:00:00 2001 From: frosso Date: Fri, 20 Dec 2024 18:01:05 +0100 Subject: [PATCH] even simpler --- .../class-wc-payments-express-checkout-ajax-handler.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/express-checkout/class-wc-payments-express-checkout-ajax-handler.php b/includes/express-checkout/class-wc-payments-express-checkout-ajax-handler.php index 6bb632e735a..e4cd595b225 100644 --- a/includes/express-checkout/class-wc-payments-express-checkout-ajax-handler.php +++ b/includes/express-checkout/class-wc-payments-express-checkout-ajax-handler.php @@ -49,9 +49,8 @@ public function init() { woocommerce_store_api_register_update_callback( [ 'namespace' => 'woopayments/express-checkout/refresh-ui', - 'callback' => function ( $data ) { - // do nothing, this callback is needed just to refresh the UI. - }, + // do nothing, this callback is needed just to refresh the UI. + 'callback' => '__return_null', ] ); }