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.

170 Snippets
60+ Favourites
16k Downloads

Real-time validation for restricting numbers from Single Line Text field

/** * Dynamically prevent numbers from being entered on single line text fields * * @link…

30+

Creating a Form With Floating Labels

form#wpforms-form-1682 { position: relative; } form#wpforms-form-1682 .floating label:nth-of-type(2) { display: none; } .floating input { position:…

30+

Sending Geolocation Data Through Webhooks

This snippet works with the Geolocation and Webhooks addon. It allows you to send geolocation data…

30+

Approving User Account After Completed PayPal Payment

This snippet conditionally approves a user's account after they've completed their payment through the PayPal gateway.

30+

Removing the Header Image From Notification Emails of Specific Forms

This code snippet hides the header image in notification emails for only a few forms instead…

30+

Disabling Past Times on the Date / Time Field

This snippet disables past times on the Time Picker field in WPForms.

30+

Changing the Cache Time on Your Form Token

/** * Extend cache time on form tokens before today. * * @link https://wpforms.com/developers/how-to-change-the-cache-time-on-your-form-token */ function…

30+

How to Populate a Form Field from an Anchor Link

/** * Populate field from anchor link. * * @link https://wpforms.com/developers/how-to-populate-a-form-field-from-an-anchor-link/ */ function wpf_dev_autofill_field() { ?>

20+

Displaying the Total Number of Entries on Your Site

This snippet creates a shortcode that you can use to display the total number of entries…

20+

Troubleshooting Action Scheduler - access the Scheduled Actions page

Some plugins that install the Action Scheduler library (such as the Action Scheduler plugin itself) add…

20+

Sending Multiple File Uploads to Google Drive through Zapier

This snippet modifies our Zapier integration and allows users to send multple files submitted through the…

20+

How to Use Conditional Logic With a Date Picker

/** * Use conditional logic with a date field to show or hide another form field…

20+
1 6 7 8 9 10 15