From 03f7e9857daa8f09e04bcdbecf8bd94817dfd845 Mon Sep 17 00:00:00 2001 From: Remo Zaros Date: Wed, 1 Jul 2026 11:18:44 +0200 Subject: [PATCH] move register_modal_api to main file --- session_dialog.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/session_dialog.php b/session_dialog.php index 9a5839d..30f7726 100644 --- a/session_dialog.php +++ b/session_dialog.php @@ -545,14 +545,6 @@ function load_assets_reset_postcode_on_checkout() } } -function register_modal_api() -{ - register_rest_route("postcode-modal/v1", "submit", [ - "methods" => "POST", - "callback" => "handle_postcode_modal", - "permission_callback" => "__return_true", - ]); -} function handle_unset_session_fetch() {