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.

140 Snippets
10+ Favourites
8.2k Downloads

How to Defer the reCAPTCHA Script

/** * Defer the reCAPTCHA script until after the page loads * * @link https://wpforms.com/developers/how-to-defer-the-recaptcha-script/ */…

<10

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…

<10

How to Add Address Field Validation For Authorize.net

/** * Add address validation for Authorize.net address fields * * @link https://wpforms.com/developers/how-to-add-address-field-validation-for-authorize-net/ */ function wpf_dev_authorize_address_validation(…

<10

Adding Material Design to Your Form Fields Using CSS

#wpforms-form-697 { float: left; width: 100%; text-align: center; margin: 30px auto 30px auto; } #wpforms-form-697 .wpforms-field…

<10

Sending Form Fields as Smart Tags to Square

The snippet makes Smart Tags usable with Square payments. It allows you to include form fields…

<10

Custom Style Icons for Rating field

This snippet will customize your rating icons in the Rating field

<10

Changing Sublabels for the Email Field

This snippet is used to update the default labels for the Email field when it includes…

<10

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…

<10

To Remove a Single Field From {all_fields}

This code snippet removes a single field from your email notifications while still using the {all_fields}…

<10

Assign User Role Conditionally in WordPress

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

<10

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

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

<10

How to Change the Error Text for Failed Submissions

This code snippet changes the error text that shows to your visitors on failed submissions.

<10
1 8 9 10 11 12