Hide Price & Add to Cart for Non Logged in Users for Specific Products
This code snippet allows you to hide the price and 'Add to Cart' button for users…
WP Simple Pay: Custom Button Color
Using CSS, change the checkout button color from green to blue when using the Embedded or…
Add PDF to purchase receipt
Attaches a PDF to the email customers receive when they purchase
Prevent AIOSEO from changing the category to the primary one
This snippet will prevent AIOSEO from changing the category to the primary one.
Set Custom Redirection After Registration
Send the user to a custom page after they have registered.
File Size Display
After the download content, shows a list of the download files and their sizes
Add Custom Text Before Purchase Button
Add custom text just before the "Purchase" button at checkout
Save images as WEBP
/** * Convert Uploaded Images to WebP Format * * This snippet converts uploaded images (JPEG,…
Allow SVG/JPEG/WEBP/ICO/AVIF Files Upload
Allows these filetypes to be uploaded to the media library
Make Single Field Required
Make a single field on the donation form required.
Disable Nonce Check For Non Logged In Users
Disables the nonce check for non-logged in donors, usually for those using page caching which causes…
Show Admin Bar
The code below shows the admin bar for logged in users who do not have these…
Export Categories and Tags
Export Categories and Tags
Move Jump to Recipe above featured image
/** * Ensures the "Jump to Recipe" button is added to the content really late. */…
New Donation Field Plus Customized Donor Name
This is the full code for a tutorial written on the WP Charitable blog.