About

WPForms is the most beginner-friendly WordPress form builder plugin. Our drag and drop form builder lets you create beautiful forms for your website in minutes.

Our goal is simple: to provide a WordPress forms plugin that's both easy to use AND powerful. We want to take the pain out of creating online forms and make it easy for everyone - we call it "stupid simple".

Over 6 million websites use WPForms to create contact forms, payment forms, survey forms, conversational forms, newsletter forms, registration forms, and more.

147 Snippets
20+ Favourites
11k Downloads

How to Create a Form With Floating Labels

/** * Remove the field label from the top of the field * * @link https://wpforms.com/developers/how-to-create-a-form-with-floating-labels/…

<10

How to Hide Zero Quantity Items in Dropdown Payment Field Notifications

This snippet hides items with zero quantities from your WPForms notification emails when using payment fields

<10

How to Add an Input Mask to the International Postal Code

/* * Custom input mask for the address field's international scheme. * * @link https://wpforms.com/developers/how-to-add-an-input-mask-to-the-international-postal-code */…

<10

Setting the Default Address Scheme to International

This snippet is used to update the default behavior of the Address field in WPForms. This…

<10

Remove Multiple Fields From {all_fields} in Notifications

This code snippet removes multiple fields from your email notifications while still using the {all_fields} smart…

<10

How to Set the Language for Google reCAPTCHA

/** * Set the language for Google reCAPTCHA. * * @link https://wpforms.com/developers/how-to-set-the-language-for-google-recaptcha/ */ function wpf_dev_recaptcha_language( $url…

<10

How to Disable reCAPTCHA for Automated Testing

/** * Disable for automated testing. * * @link https://wpforms.com/developers/how-to-disable-recaptcha-for-automated-testing/ */ // Disable reCAPTCHA assets and…

<10

Changing sublabels for Email Field on a Single Form

This snippet is used to change sublabel for Email field on a specific form. Be sure…

<10

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()…

<10

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:…

<10

How to Change the Captcha Theme on Google Checkbox v2 reCAPTCHA

/** * Change the captcha theme for the Google Checkbox v2 reCAPTCHA * * @link https://wpforms.com/developers/how-to-change-the-captcha-theme-on-google-checkbox-v2-recaptcha/…

<10

Generate and Send Invoice Number to Authorize.Net

This snippet generates and sends a unique invoice number to Authorize.Net for completed payments in WPForms

<10
1 9 10 11 12 13