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

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…

Hiding Page Breaks When Using Conditional Logic
This snippet will hide pages in your form that include fields hidden with conditional logic if…

Restricting Address Autocomplete to a Specific Country
This snippet is used to modify the default behavior of the address autocomplete feature in WPForms.…

Setting a Default Featured Image for Post Submissions
This snippet is used to assign a default image that'll serve as the featured image for…

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

Storing User's Uncached IP Address in Hidden Field
This snippet lets you capture and store the user's IP address in the Hidden field. It…

Disabling Past Times on the Date / Time Field
This snippet disables past times on the Time Picker field in WPForms.

Merging Multiple WPForms Field Values into Post Content
/** * Merging Multiple WPForms Field Values into Post Content * * @link https://wpforms.com/developers/merging-multiple-wpforms-field-values-into-post-content */ function…

How to Add BCC to Email Notifications (for all forms)
add_filter( 'wp_mail', function ( $args ) { // Add the BCC email address here $bcc_address =…

How to Add Material Design to Your Form Fields Using CSS
/** * Move label position from above form field to below * * @link https://wpforms.com/developers/how-to-add-material-design-to-your-form-fields-using-css/ */…

How to Link Your Conversational Form Logo
This code snippet will make the logo clickable in a WPForms Conversational Form.
