Change the Post ID Being Processed by AIOSEO
This snippet can be used to change the Post ID being processed by AIOSEO.
How to Change the Error Text for Failed Submissions
This code snippet changes the error text that shows to your visitors on failed submissions.
Set a specific language for Cloudflare Turnstile.
/** * Set a specific language for Cloudflare Turnstile. * * @link https://wpforms.com/developers/how-to-set-the-language-for-cloudflare-turnstile */ function wpf_add_turnstile_language_script()…
How to Defer the reCAPTCHA Script
/** * Defer the reCAPTCHA script until after the page loads * * @link https://wpforms.com/developers/how-to-defer-the-recaptcha-script/ */…
How to Customize the Labels for Image Choices - Combined effect
form#wpforms-form-1000 .wpforms-field .wpforms-image-choices-item:hover .wpforms-image-choices-label { position: absolute; top: 0; left: 50%; transform: translateX(-50%); background-color: #f6f6f6; color:…
How to Disable Browser Autocomplete for Form Fields - specific fields
/** * Disable autocomplete for a specific form and field ID * * @link https://wpforms.com/developers/disable-browser-autocomplete-for-form-fields/ */…
How to Change Google reCAPTCHA Language Settings
WPML support
Dynamically Setting Stripe Payment Description in WPForms
To dynamically set the Stripe payment description, add the following code snippet to your site.
Add Dropdown Field To Donation Form
Shows how to add a custom dropdown in a donation form (this example the select field…
Show a Live Count of Repeater Fields in Your Form
This code snippet will display a live count of how many repeater field rows have been…
Add Image Alt Text automatic
function add_alt_text_to_images( $html ) { // Check if the image has a title attribute if (…
Add Dynamic Hidden Field
Dynamically set as a hidden field in the donation form, based on the ID of the…
Add Campaign Raised Summary
Add a short summary after the donation details showing the funds raised by each campaign.
Add Campaign Creator Name Donation Export
In this example, the campaign creator's name is added to the Donations export, so it's easy…
Remove Gutenberg Block CSS
Remove Gutenberg Block Library CSS from loading on the frontend