Remove Form Fields
This snippet has moved to https://github.com/Charitable/library/tree/master/forms/general/remove-form-fields.phpContinue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
This snippet has moved to https://github.com/Charitable/library/tree/master/forms/general/remove-form-fields.phpContinue reading
/** * The `charitable_login_form_args` filter allows you to set * the arguments that are passed to wp_login_form(). * * In this example, we change the URL that people are redirected * to after logging in through the form generated by…Continue 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
/** * By default, the Donors widget & shortcode will only include donors with * Paid donations. With this snippet, you can make sure that * donors with Pending donations are also included. */ function ed_include_pending_donors_in_donors_widget_shortcode( $query_args ) { $query_args[‘status’]…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
/** * Change the donors widget so only the first name and last name * initial of the donor are shown. * * @param string $name The name to be displayed * @param array $args Arguments passed to the donor-loop/donor.php…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
/** * Allow donors to be be added without an email address. * * Prior to Charitable 1.6, this was never permitted. As of Charitable 1.6, it’s possible * to support manual donations without an email address by using this…Continue reading
/** * Automatically mark all offline donations as Paid. * * @param boolean $return * @param int $donation_id * @return boolean */ function ed_auto_complete_offline_donation( $return, $donation_id ) { charitable_get_donation( $donation_id )->update_status( ‘charitable-completed’ ); return $return; } add_filter( ‘charitable_process_donation_offline’, ‘ed_auto_complete_offline_donation’, 10,…Continue reading
/** * USAGE: * * To display a particular campaign’s button, just add this to your template: ed_charitable_get_campaign_donate_button( 123 ); * Replace 123 with the ID of your campaign. */ /** * Display a donate button for a specific campaign.…Continue reading