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.

172 Snippets
70+ Favourites
19k Downloads

Creating Additional Format for the Date / Time field

This snippet is used to add extra formats for the Time interval on the Date /…

30+

Using Smart Tags in Your WordPress Rewrite Rules

This code snippet converts messy query string URLs into clean, user-friendly URLs while preserving functionality

30+

How to Automatically Submit a Form with a Field Choice

/** * Trigger submit from checkbox click * * @link https://wpforms.com/developers/how-to-automatically-submit-a-form-with-a-field-choice/ */ function wpf_dev_automatic_submit_form( ) {…

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 Add Firework Animation to Confirmation Message

/** * Add fireworks to the canvas element on the confirmation message * * @link https://wpforms.com/developers/how-to-add-confetti-animation-to-confirmation-message/…

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+

How to Display a List of WPForms Using a Shortcode

This snippet will create a new shortcode that can display all your WPForms forms.

30+

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…

30+

Disabling Past Times on the Date / Time Field

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

30+

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

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

30+

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…

30+

How to Get the URL from the File Upload Form Field

/** * Get and use the File Upload field URL * * @link https://wpforms.com/developers/how-to-get-the-url-from-the-file-upload-form-field/ */ function…

30+
1 6 7 8 9 10 15