add_action( 'rest_api_init', function() { remove_filter( 'rest_pre_serve_request', 'rest_send_cors_headers' ); add_filter( 'rest_pre_serve_request', function( $value ) { header( 'Access-Control-Allow-Origin: *' ); header( 'Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, DELETE' ); header( 'Access-Control-Allow-Credentials: true' ); header( 'Access-Control-Allow-Headers: Authorization, Content-Type, X-WP-Nonce, X-Requested-With' ); // Interceptar y aprobar el "Pre-flight" de seguridad del navegador para los POST if ( 'OPTIONS' === $_SERVER['REQUEST_METHOD'] ) { status_header( 200 ); exit(); } return $value; } ); }, 15 );add_filter( 'woocommerce_order_button_text', 'montecristo_custom_order_button_text' ); function montecristo_custom_order_button_text( $order_button_text ) { return 'Solicitar reserva / Presupuesto'; }

ASÍ LO HACEMOS

#thisishowwedo

 
 
 

CLIENTES

Visual Portfolio, Posts & Image Gallery for WordPress
Iniciar conversación
¿Hablamos?
Hola👋🏻
¿En qué podemos ayudarte?