How to Use Conditional Logic With a Date Picker
/** * Use conditional logic with a date field to show or hide another form field…
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:…
How to Get the URL from the File Upload Form Field
/** * Get and use the File Upload field URL * * @link https://wpforms.com/developers/how-to-get-the-url-from-the-file-upload-form-field/ */ function…
Duplicate Posts and Pages
// Add the duplicate link to action list for post_row_actions // for "post" and custom post…
Change / Translate Plugin Text
This is a local translation snippet that should work for any phrases in Charitable and Charitable…
Remove Unused JS
/** * We will Dequeue the jQuery UI script as example. * * Hooked to the…
Add Textbox To Donation Form
Adds a textbox to a donation form - for example, to collect a referral code.
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() { ?>
Creating Additional Format for the Date / Time field
This snippet is used to add extra formats for the Time interval on the Date /…
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…
Displaying Shortcodes Inside Form Label Fields
/** * Run shortcodes on the form label field. * * @link https://wpforms.com/developers/how-to-display-shortcodes-inside-the-label-of-the-form-field/ */ function add_shortcode_to_label(…
Open all external links in new tab
This makes the manual link tab association obsolete. All links to another domain will open in…
Multi Step Donation Form
This snippet provides a foundation for converting the donation form into a multi-step donation form.
My Insert widget in header
My own way of Inserting widget in header
Change Default Post Type Slug “location”
This filter can be used to change the default post type slug from “location” to 'franchise'.