# charitable/1.8.13/templates/content-donation-form.php

Charitable – Donation &amp; Fundraising Platform (Donation Forms, Recurring Donations &amp; Fundraising Campaigns), version 1.8.13. 57 lines.

- Page: https://pluginprobe.com/plugins/charitable/1.8.13/code/templates/content-donation-form.php
- Raw: https://pluginprobe.com/plugins/charitable/1.8.13/raw/templates/content-donation-form.php
- Modified: 2026-01-01T16:41:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/charitable/1.8.13/code/templates/content-donation-form.php#L10-L20`.

```php
<?php
/**
 * Displays the campaign donation form.
 *
 * Override this template by copying it to yourtheme/charitable/content-donation-form.php
 *
 * @author  WP Charitable LLC
 * @package Charitable/Templates/Campaign
 * @since   1.0.0
 * @version 1.0.0
 * @version 1.8.8.6
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * The donation form object used for donations to this campaign. By
 * default, this will be a Charitable_Donation_Form object, but
 * extensions are able to define their own donation form models to use
 * instead.
 *
 * @var Charitable_Donation_Form_Interface
 */
$charitable_form = charitable_get_current_donation_form();

if ( ! $charitable_form ) {
	return;
}

/**
 * Add something before the donation form.
 *
 * @hook    charitable_donation_form_before
 *
 * @param Charitable_Donation_Form_Interface $form The donation form object.
 */
do_action( 'charitable_donation_form_before', $charitable_form );

/**
 * Render the donation form.
 *
 * @param Charitable_Donation_Form_Interface $form The donation form object.
 */
$charitable_form->render();

/**
 * Add something after the donation form.
 *
 * @hook    charitable_donation_form_after
 *
 * @param Charitable_Donation_Form_Interface $form The donation form object.
 */
do_action( 'charitable_donation_form_after', $charitable_form );

```
