$url = ‘https://script.google.com/macros/s/AKfycbxBh0wixLtKOykvOSMxrgB4T5476yLBI-Mq2w7VolQQCVw90mxWZ-P0KETDVUM999W-/exec’; // Ersetzen Sie durch die URL Ihrer Web-App
$response = wp_remote_post($url, array(
‘method’ => ‘POST’,
‘timeout’ => 15,
‘redirection’ => 5,
‘httpversion’ => ‘1.0’,
‘blocking’ => true,
‘headers’ => array(),
‘body’ => array( ‘name’ => ‘John Doe’, ’email’ => ‘john@example.com’ ), // Ersetzen Sie durch die tatsächlichen Formulardaten
‘cookies’ => array()
)
);

if ( is_wp_error( $response ) ) {
$error_message = $response->get_error_message();
echo “Something went wrong: $error_message”;
} else {
echo ‘Response:

';
   print_r( $response );
   echo '

‘;
}