MemberPress: Set Default Country on Registration Page

This code will help set specified country as default country for the Country field on MemberPress…

Add Custom Donation Field With Dynamic Value

Add a new donation field to be displayed in Charitable emails related to donations.

Set Minimum Donation Amount

Set the minimum donation amount required.

WP Simple Pay: Use Custom Field Value as Stripe Payment Description

Use the value of a custom field as the description for the Stripe payment record.

Disable Posts Post Type

This snippet hides the default Posts post type from the WordPress admin

<10

Google Tag Manager Header

(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=

Cathy White
<10

Customize Amount Raised Text

In this example, we change how the "X donated of Y goal" text appears.

Estimated reading time

// Estimated reading time function readTime ( $content = '', $words_per_minute = 250, $with_gutenberg = false…

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 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.…

Prevent AIOSEO From Rewriting Term Title

This snippet can be used to prevent AIOSEO from rewriting term titles.

<10

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 Campaign Status to Campaign Shortcode

This inserts the campaign status ('active', 'successful') to the [campaigns] shortcode. https://www.wpcharitable.com/documentation/the-campaigns-shortcode/

1 … 43 44 45 46 47 … 243