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

Assign User Role Conditionally in WordPress

This snippet works with WPForms and the User Registration Add-on. It lets you assign user roles…

20+

Decrease the retention period to one week for the Action Scheduler

By default, Action Scheduler will automatically remove completed tasks after thirty days. However, this time period…

20+

Focused Form Fields

This CSS snippet will make your fields focused on click.

20+

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

20+

Localizing Date Picker Strings

This snippet is used to modify WPForms' default date picker locale

20+

How to Restrict Countries Inside Smart Phone Form Fields

/** * Restrict countries inside the Smart Phone form field * * @link https://wpforms.com/how-to-restrict-countries-inside-smart-phone-form-fields/ */ function…

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+

Using Smart Tags in Your WordPress Rewrite Rules

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

10+

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…

10+

Using Date Picker Localization

This snippet is used to apply the changes that instruct WPForms to update the date picker…

10+

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.

10+

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

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

10+
1 5 6 7 8 9 13