# charitable/1.7.0.12/templates/campaign/description.php

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

- Page: https://pluginprobe.com/plugins/charitable/1.7.0.12/code/templates/campaign/description.php
- Raw: https://pluginprobe.com/plugins/charitable/1.7.0.12/raw/templates/campaign/description.php
- Modified: 2022-11-30T16:41:28+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.12/code/templates/campaign/description.php#L10-L20`.

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

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

// Prior the description output as $view_args['campaign']->description but since 1.7.0.4 as visual editor can add html.
$campaign = isset( $view_args['campaign'] ) ? $view_args['campaign'] : false;

?>
<div class="campaign-description">
	<?php echo apply_filters( 'charitable_campaign_description_template_content', $view_args['campaign']->description, $campaign ); ?>
</div>

```
