Make Donor Address Required

/** * Make all address fields required. * * As of Charitable 1.6 the approach below…

Post class update

add_filter( 'body_class', function( $classes ) { $acc_type=tmwp_get_user_role(); if (!$acc_type) $acc_type='anonymous'; return array_merge( $classes, array('acc-type-'.strtolower($acc_type),tmwp_get_page_class()) ); }…

Add Checkbox Field To Donation Form

/** * Collect a checkbox field in the donation form. * * This snippet only works…

Add User Dashboard Menu

/** * By default, Charitable includes a User Dashboard menu, but * this is not automatically…

Remove Campaign Description

/** * Remove the campaign descriptions from the campaign loop. */ function en_remove_campaign_description_in_loop() { remove_action( 'charitable_campaign_content_loop_after',…

Multi Step Donation Form

/** * This snippet provides a foundation for converting the donation form * into a multi-step…

MemberPress: Add Author Bio Shortcode

Place the [mpcs-author-bio] shortcode in a post, page, or course. The shortcode will display the biographical…

Change Section Headers Per Campaign

/** * Change the section headers in the donation form. * * @param array $fields All…

Change Country Field To Hidden

/** * This code snipet shows how to change the Country field in the * donation…

Use Page Template For Campaigns

/** * Instead of using the Post template for campaigns, use the Page template as a…

Move WooCommerce Category Description Below Products

The following snippet moves the WooCommerce description from the default location (page header subheading) to below…

1 2 3 4 5 15