132 Snippets
<10 Favourites
30+ Downloads

Add Fields

/** * Add fields to the registration form. * * @param array $fields * @return array…

Redirect To Referer After Login

/** * After a user logs in, redirect them back to the page they * were…

Enable Block Editor For Campaigns

/** * The following code will modify the way the Campaign post type * is set…

Remove Login Form

/** * Remove the login prompt from being displayed before the donation form. */ function ed_remove_login_form_before_donation_form()…

Move Fields

/** * Move fields in the Donation Form. * * In the example below, we move…

Add Donate Button

/** * USAGE: * * To display a particular campaign's button, just add this to your…

Collect National Id Number

/** * Add a text field to the donation form. * * This field is added…

Change Custom Amount Field Label

/** * Filter the custom amount field description. * * @param string $label The default label.…

Set Custom Redirection After Registration

/** * Send the user to a custom page after they have registered. * * @param…

Change Plugin Text

/* * A local translation snippet. Change 'YOUR TEXT HERE' to your desired text. * *…

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…

1 2 3 11