Dynamically Setting Stripe Payment Description in WPForms
To dynamically set the Stripe payment description, add the following code snippet to your site.
Upload font files to media library
Allow the upload of font files (.ttf, .otf, .woff & .woff2) to WordPress media library
Change Fields On Donation Form
Example on how to change labels for fields on donation form.
Changing the Name Attribute of a Hidden Field
This code snippet can be used to change the Name attribute of a Hidden field.
Add Campaign Creator Name Donation Export
In this example, the campaign creator's name is added to the Donations export, so it's easy…
Enable Block Editor For Campaigns
Code that will modify the way the Campaign post type is set up to so that…
Add Field Placeholders
Add placeholder attributes to donation fields, removing the label field.
Remove Gutenberg Block CSS
Remove Gutenberg Block Library CSS from loading on the frontend
Remove users from WP-JSON
Increase your site's security by hiding usernames from WP-JSON, that are otherwise exposed to the public.
Allow WebP Files Upload
The provided PHP code is intended to enable the upload of WebP image files in WordPress…
Add Dynamic Hidden Field
Dynamically set as a hidden field in the donation form, based on the ID of the…
How to Block Names From Completing Your Form - Simple format
/** * Prevent certain names from the Simple format Name form field. * * @link https://wpforms.com/developers/how-to-block-names-from-completing-your-form/…
Add Image Alt Text automatic
function add_alt_text_to_images( $html ) { // Check if the image has a title attribute if (…
Translating the Total Field's Order Summary
This code targets specific elements inside the Order Summary and updates the labels to the translated…
How to Block Names From Completing Your Form - First Last and First Middle Last format
/** * Prevent certain names from the other formats for the Name form field. * *…