Restricting Address Autocomplete to a Specific Country
This snippet is used to modify the default behavior of the address autocomplete feature in WPForms.…
How to Create a Form With Floating Labels
/** * Remove the field label from the top of the field * * @link https://wpforms.com/developers/how-to-create-a-form-with-floating-labels/…
How to Store Field Values in the WPForms Entry
/** * Show values in Dropdown, checkboxes, and Multiple Choice. */ add_action( 'wpforms_fields_show_options_setting', '__return_true' ); /**…
Disable OpenGraph Tags on all Listing Detail Pages
This snippet disables OpenGraph Tags on all pages whose URL contains /listing-detail/
Customizing Checkbox and Radio Fields to Look Like Buttons (All Forms)
This code snippet will customize Checkbox and Radio fields to look like buttons for all forms.
Disable Schema Output for WooCommerce products
This filter can be used to Disable Schema Output for WooCommerce products.
Add aria-label to progress bar to improve WPForms accessibility
/** * Fix WPForms Accessibility: Add aria-label to progress bar. */ function wpf_fix_wpforms_progressbar_aria() { ?>
Custom Registration Fields
Add fields to the registration form.
Remove Multiple Fields From {all_fields} in Notifications
This code snippet removes multiple fields from your email notifications while still using the {all_fields} smart…
Change Default Post Type Slug “location”
This filter can be used to change the default post type slug from “location” to 'franchise'.
Make Donor Address Required
Make all address fields required on donation pages.
Add Custom Field
Display the custom field in the campaign grid.
Dynamically Displaying Years in Your Forms
/** * Dynamically display years in the forms * * @link https://wpforms.com/developers/how-to-dynamically-display-years-in-your-forms/ */ function wpf_dev_dynamic_school_year( )…
Multi Step Donation Form
This snippet provides a foundation for converting the donation form into a multi-step donation form.
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(…