# charitable/1.7.0.11/templates/content-campaign.php

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

- Page: https://pluginprobe.com/plugins/charitable/1.7.0.11/code/templates/content-campaign.php
- Raw: https://pluginprobe.com/plugins/charitable/1.7.0.11/raw/templates/content-campaign.php
- Modified: 2022-09-21T15:01:56+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.7.0.11/code/templates/content-campaign.php#L10-L20`.

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

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

$campaign = $view_args['campaign'];
$content  = $view_args['content'];

/**
 * Add something before the campaign content.
 *
 * @since 1.0.0
 *
 * @param $campaign Charitable_Campaign Instance of `Charitable_Campaign`.
 */
do_action( 'charitable_campaign_content_before', $campaign );

echo $content;

/**
 * Add something after the campaign content.
 *
 * @since 1.0.0
 *
 * @param $campaign Charitable_Campaign Instance of `Charitable_Campaign`.
 */
do_action( 'charitable_campaign_content_after', $campaign );

```
