142 Snippets
20+ Favourites
40+ Downloads

Add Field Placeholders

/** * Add placeholder attributes to donation fields, removing the label field. * * @return void…

Show Admin Bar

/** * By default, Charitable hides the admin bar from users * who do not have…

Unhook Default Charitable Template Functions

/** * Unhook default Charitable template functions. * * In this example, we're going to remove…

Make Donor Address Required

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

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…

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…

Change Footer Text

/** * Filter the email footer text & link. * * @param string $text The default…

1 2 3 4 12