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.

171 Snippets
60+ Favourites
17k Downloads

How to Add BCC to Email Notifications (for all forms)

add_filter( 'wp_mail', function ( $args ) { // Add the BCC email address here $bcc_address =…

40+

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…

40+

Focused Form Fields

This CSS snippet will make your fields focused on click.

40+

How to Move to the Next Page Automatically

/** * Navigate to the next page automatically * * @link https://wpforms.com/developers/how-to-move-to-the-next-page-automatically/ */ function wpf_dev_automatic_next_page( )…

40+

How to Center a Form

This code centers the form using margin: 0 auto and sets a maximum width of 500px.

40+

Reduce Database Calls

You can edit your child theme and replace these calls with more specific information to stop…

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+

Using Date Picker Localization

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

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+

Sending Geolocation Data Through Webhooks

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

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+

Localizing Date Picker Strings

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

30+
1 5 6 7 8 9 15