Prevent AIOSEO From Outputting any Data on Category Archive Pages
Prevent AIOSEO from outputting any data on category archive pages.
Redirect To Referer After Login
After a user logs in, redirect them back to the page they were on right before…
Add Campaign Raised Summary
Add a short summary after the donation details showing the funds raised by each campaign.
Enable Block Editor For Campaigns
Code that will modify the way the Campaign post type is set up to so that…
Change Campaign Slug Base
Change the /campaigns/ bit to something else.
Add Campaign Creator Name Donation Export
In this example, the campaign creator's name is added to the Donations export, so it's easy…
Change Fields On Donation Form
Example on how to change labels for fields on donation form.
Add Dropdown Field To Donation Form
Shows how to add a custom dropdown in a donation form (this example the select field…
How to Change the Error Text for Failed Submissions
This code snippet changes the error text that shows to your visitors on failed submissions.
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/ */…
How to Customize the Labels for Image Choices - Combined effect
form#wpforms-form-1000 .wpforms-field .wpforms-image-choices-item:hover .wpforms-image-choices-label { position: absolute; top: 0; left: 50%; transform: translateX(-50%); background-color: #f6f6f6; color:…
Dynamically Setting Stripe Payment Description in WPForms
To dynamically set the Stripe payment description, add the following code snippet to your site.
Changing the Name Attribute of a Hidden Field
This code snippet can be used to change the Name attribute of a Hidden field.
Upload font files to media library
Allow the upload of font files (.ttf, .otf, .woff & .woff2) to WordPress media library
WooCommerce Change "$0.00" to "Free"
/** * Snippet Name: WooCommerce Change "$0.00" to "Free" * Snippet Author: ecommercehints.com */ add_filter( 'woocommerce_get_price_html',…