
Dividae
Dividae, Recuperación facturas impagadas Categoria: Desarrollo Cliente: Dividae Fecha inicio: Enero [...]
add_action('wpcf7_mail_sent', function($contact_form) { $submission = WPCF7_Submission::get_instance(); if (!$submission) return; $title = $contact_form->title(); $data = $submission->get_posted_data(); // Normaliza teléfono simple (opcional) $rawPhone = $data['your-phone'] ?? ''; $phone = preg_replace('/\D+/', '', $rawPhone); if ($phone && strpos($phone, '34') !== 0) { $phone = '34' . $phone; } $payload = [ 'form_title' => $title, 'name' => $data['your-name'] ?? '', 'email' => $data['your-email'] ?? '', 'phone' => $phone, 'service' => $data['your-service'] ?? '', 'message' => $data['your-message'] ?? '', 'utm_source' => $_COOKIE['utm_source'] ?? '', 'utm_medium' => $_COOKIE['utm_medium'] ?? '', 'utm_campaign' => $_COOKIE['utm_campaign'] ?? '', 'utm_term' => $_COOKIE['utm_term'] ?? '', 'utm_content' => $_COOKIE['utm_content'] ?? '', 'timestamp' => gmdate('c'), 'ip' => $_SERVER['REMOTE_ADDR'] ?? '', 'user_agent' => $_SERVER['HTTP_USER_AGENT'] ?? '' ]; $webhook_url = 'https://hook.eu2.make.com/b8mdopfa7gbk91sg9nstd9jhxkma08rv'; // — Logs para verificar ejecución — error_log('CF7→Make: hook ejecutado para "' . $title . '"'); $args = [ 'headers' => [ 'Content-Type' => 'application/json' ], 'body' => wp_json_encode($payload), 'timeout' => 8, 'sslverify'=> true, 'blocking' => true // TRUE para obtener código de respuesta en el log ]; $response = wp_remote_post($webhook_url, $args); if (is_wp_error($response)) { error_log('CF7→Make ERROR: ' . $response->get_error_message()); } else { error_log('CF7→Make status: ' . wp_remote_retrieve_response_code($response)); } });
Dividae, Recuperación facturas impagadas Categoria: Desarrollo Cliente: Dividae Fecha inicio: Enero [...]
Salvavidas Tecnología en Cardioprotección Categoria: CRM a Medida Cliente: Salvavidas Fecha inicio [...]
Oportunalia Líderes en inmuebles Categoria: Desarrollo Cliente: Oportunalia Fecha inicio: Octubre 2 [...]
Ztris Modelos Digitales Categoria: Desarrollo Cliente: Ztris Fecha inicio: Novienbre 2023 Link : ztr [...]