How to Display a List of WPForms Using a Shortcode
This snippet will create a new shortcode that can display all your WPForms forms.
Real-time validation for restricting numbers from Single Line Text field
/** * Dynamically prevent numbers from being entered on single line text fields * * @link…
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:…
Prevent Copy Paste
This JavaScript snippet prevents right-click and copy events on the frontend
Add Donation Form Shortcode
Display a specific campaign's donation form using a shortcode.
Change the separator html on pages
This snippet can be used to change the separator html on pages
Change Business Info Opening Hours Icon
This filter can be used to change the business info Opening Hours icon. Replace "/assets/images/email-icon.png" with…
How to Populate a Form Field from an Anchor Link
/** * Populate field from anchor link. * * @link https://wpforms.com/developers/how-to-populate-a-form-field-from-an-anchor-link/ */ function wpf_dev_autofill_field() { ?>
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.
Add Select Field To Donation Form
Add a select field to the donation form.
Troubleshooting Action Scheduler - access the Scheduled Actions page
Some plugins that install the Action Scheduler library (such as the Action Scheduler plugin itself) add…
Remove datePublished and dateModified properties from the Article schema for Posts
This snippet removes the datePublished and dateModified properties from the Article schema for Posts
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…
Sending Geolocation Data Through Webhooks
This snippet works with the Geolocation and Webhooks addon. It allows you to send geolocation data…
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…