Hey! Thanks for your comments.
I’m thinking about to add a option, but you can achieve this with filters.
add_filter( 'ctz_post_request_ignore_errors', '__return_true' );
add_filter( 'ctz_post_request_args', function( $args, $properties, $contact_form, $hook_url ) {
// Check your URL or any other parameter like ID from $contact_form ...
$args['blocking'] = false;
return $args;
}, 10, 4 );
This way you can ignore errors and let request be non-blocking.
Thread Starter
Dade
(@dade88)
This looks awesome!
Since I am, finally, not getting many errors from the Webhooks, could you please confirm if ignoring errors on submit still send the error mail to the admin?
No… blocking false will not receive any data from server:
Whether the calling code requires the result of the request.
If set to false, the request will be sent to the remote server, and processing returned to the calling code immediately, the caller will know if the request succeeded or failed, but will not receive any response from the remote server. Default true.
Documentação
So.. even with ctz_post_request_ignore_errors false you’re not getting any response.
Hello, I think I have been having the same issue. When the webhook sends data to Google Sheets in 30 percent of cases, after hitting form submit button, the wheel keeps spinning forever. Where can I paste the code with the filter?
Where can I paste the code with the filter?
In your functions.php.
HOW TO
✅ Basic Steps:
- Go to your WordPress dashboard.
- Navigate to Appearance > Theme File Editor (or use FTP/SFTP and a code editor like VSCode).
- Choose the file
functions.php to edit.
- Insert your PHP code inside
<?php ... ?> tags.
- Save the file and test the changes on your site.
⚠️ Important Tips:
- Always use a child theme to avoid losing changes when the parent theme updates.
- Backup your site before editing files.
- Don’t add
<?php tags if you’re already inside a PHP block.
- Consider using a staging environment to test your changes safely.
—
If you have a non custom theme you can create a child theme to add code and keep it from updates.
🧩 1. Create the Child Theme Folder
Using FTP or your hosting file manager:
- Go to:
wp-content/themes/
- Create a new folder, e.g.,
your-theme-child
- Use the same name as the parent theme with
-child at the end (optional but recommended).
📝 2. Create a style.css File
Inside the child theme folder, create a file named style.css with the following content:
/*
Theme Name: Your Theme Child
Template: your-theme-folder-name
Version: 1.0.0
*/
@import url("../your-theme-folder-name/style.css");
Theme Name: Anything you want.
Template: Must match the folder name of the parent theme exactly.
- You can skip
@import if you enqueue styles via PHP (recommended method below).
🧠 3. Create a functions.php File
In the same folder, create a file named functions.php and add this code:
<?php
// Enqueue parent and child styles
add_action('wp_enqueue_scripts', function () {
wp_enqueue_style('parent-style', get_template_directory_uri() . '/style.css');
wp_enqueue_style('child-style', get_stylesheet_uri(), ['parent-style']);
});
This loads both the parent theme’s and the child theme’s styles properly.
✅ 4. Activate the Child Theme
- Go to your WordPress dashboard.
- Navigate to Appearance > Themes.
- You should see “Your Theme Child” listed — click Activate.
🚨 Notes
- Always double-check the
Template: value in style.css. If it’s incorrect, the theme won’t appear in the dashboard.
- You can override any parent theme template by copying the file into the child theme and editing it.
- You can add new CSS rules to the child’s
style.css.
- You can add code to this
functions.php.