/** * This example shows how to make a form field required or not required. * * Our first example below changes the ‘phone’ field in the Donation Form * into a required field; our second example changes the ‘first_name’…Continue reading
/** * Unhook default Charitable template functions. * * In this example, we’re going to remove the donor count from the campaign * page, but you can adapt this to unhook any template functions that are * added by Charitable.…Continue reading
/** * Load Charitable template files in the admin area. * * Some plugins or themes attempt to run shortcodes in the admin * area, which can cause a fatal error with Charitable. The core * plugin attempts to avoid…Continue reading
/** * By default, Charitable includes a User Dashboard menu, but * this is not automatically added unless the theme builds * in support for it. * * If you want to include the User Dashboard menu at the top…Continue reading
This snippet has moved to https://github.com/Charitable/library/tree/master/forms/general/remove-form-fields.phpContinue reading
/** * Right after a donation is made, this sends the donation receipt to * the donor if the donation is pending AND it was made in offline mode. * * @param int $donation_id * @return boolean */ function en_send_donation_receipt_for_pending_offline(…Continue reading
/** * Filter the email footer text & link. * * @param string $text The default text. * @return string */ function ed_charitable_change_email_footer_text( $text ) { $text = ‘Your footer text’; $link = home_url(); return ‘‘ . $text . ‘Continue reading
/** * In this example, a new email field is added which can be used both in * campaign emails and donation emails. The field gets a value for a specific * campaign, which in the case of a donation-specific…Continue reading
add_filter( ‘tasty_recipes_default_author_name’, function() { return ‘Your New Default Author Name’; } );Continue reading
add_filter( ‘tasty_recipes_quick_links’, function( $links ) { $links[] = ‘Rate this Recipe‘; return $links; } );Continue reading