Show 'NEW' Badges for Recently Added Items in WooCommerce
This code snippet adds a “NEW!” badge to products in WooCommerce, indicating that they are newly…
MemberPress: Add Custom Message Before Payment Methods Section On Registration Pages
This snippet adds a custom message before the section showing available payment methods on MemberPress regisatrtion…
MemberPress: Add a Custom Field To Manage Sub Account Table
This shortcode can be used if the MemberPress Corporate Accounts add-on is activated on the website.…
MemberPress: Set Default Country on Registration Page
This code will help set specified country as default country for the Country field on MemberPress…
On Browsing WooCommerce Products
This snippet targets window shoppers and encourages them to add more products to their carts. This…
Copy Donation Receipt To Admin
Send the donation receipt to the site admin as well.
Add WooCommerce upsells below the add-to-cart button
// add upsells below add-to-cart button add_action( 'woocommerce_single_product_summary', 'woocommerce_upsell_display', 40 );
Add custom CSS in the Admin
Use this snippet to add custom styles in the WordPress admin head. Add your CSS code…
Copyright Year Shortcode
Add shortcode to automatically update the copyright year. [year]
Add Campaign Status to Campaign Shortcode
This inserts the campaign status ('active', 'successful') to the [campaigns] shortcode. https://www.wpcharitable.com/documentation/the-campaigns-shortcode/
Prevent AIOSEO From Rewriting Term Title
This snippet can be used to prevent AIOSEO from rewriting term titles.
Explicit Fixed Width and Height
Explicit Fixed Width and Height for images
Move Jump to Recipe above featured image in Genesis
/** * Ensures the "Jump to Recipe" button is added above the featured image. */ add_action(…
product attributes on hover
a snippet to show product attributes in product archive grid layout
Hide Payment Icons When Free
Hide payment icons on the checkout form when cart total is free