move register_modal_api to main file
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user