added redirection without need of a page, use it for paypal success or failure message already
This commit is contained in:
@@ -13,7 +13,7 @@ if (!defined('ABSPATH')) {
|
||||
// diff routes and endpoints : https://stackoverflow.com/q/56075017/9497573
|
||||
function routes_endpoints_CIPF() {
|
||||
PLGNTLS_class::debug_infos();
|
||||
$base_rest_route = PLGNTLS_class::BASE_REST_ROUTE;
|
||||
$base_rest_route = PLGNTLS_class::URL_BASE_REST_ROUTE;
|
||||
register_rest_route($base_rest_route, '/orders', array(
|
||||
'methods' => 'POST',
|
||||
'callback' => 'handle_orders_request_CIPF',
|
||||
|
||||
Reference in New Issue
Block a user