add_action('gform_post_submission', 'start_pdf_generation', 10, 2); function start_pdf_generation($entry, $form) { // URL de votre script Google Apps pour générer les PDF $urlScriptGoogleApps = "https://script.google.com/macros/s/AKfycbyxjIKhFv4vrVtkyoEAzBJMPWqLpU1hfbq8ErlUCpIwnzVEUY6MQ1EGkmzOU_jqhwE8/exec"; // Lancer la génération des PDF après soumission du formulaire wp_remote_get($urlScriptGoogleApps); }