Add Field Placeholders
Add placeholder attributes to donation fields, removing the label field.
Re-route BuddyPress emails through WP Mail SMTP
This snippet will re-route all BuddyPress emails through WP Mail SMTP. This code snippet will also…
Sending Form Fields as Smart Tags to Square
The snippet makes Smart Tags usable with Square payments. It allows you to include form fields…
WooCommerce Change "$0.00" to "Free"
/** * Snippet Name: WooCommerce Change "$0.00" to "Free" * Snippet Author: ecommercehints.com */ add_filter( 'woocommerce_get_price_html',…
MemberPress: Add Bio Info To Account Page
The code will add the field called Bio to the MemberPress Account Page using a classic…
Remove Gutenberg Block CSS
Remove Gutenberg Block Library CSS from loading on the frontend
New Donation Field Plus Customized Donor Name
This is the full code for a tutorial written on the WP Charitable blog.
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 Currency
Add a new currency (the example here is Armenian Dram currency (AMD) ).
Customize Action Scheduler Retention Period
This snippet allows you to change the default 30-day storage for the Action Scheduler retention period.
Allow WebP Files Upload
The provided PHP code is intended to enable the upload of WebP image files in WordPress…
CCT overrides CPT slug
// 1. Zachytíme dáta tesne pred zápisom do DB add_filter( 'wp_insert_post_data', function( $data, $postarr ) {…
Add Dynamic Hidden Field
Dynamically set as a hidden field in the donation form, based on the ID of the…
CCT SEO post relations
/** * ========================================= * Gruppa CCT SEO * Relation: post_id -> WP Post ID * =========================================…
Add Image Alt Text automatic
function add_alt_text_to_images( $html ) { // Check if the image has a title attribute if (…