# charitable/1.8.13/templates/emails/preview.php

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

- Page: https://pluginprobe.com/plugins/charitable/1.8.13/code/templates/emails/preview.php
- Raw: https://pluginprobe.com/plugins/charitable/1.8.13/raw/templates/emails/preview.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/emails/preview.php#L10-L20`.

```php
<?php
/**
 * Email Preview
 *
 * @author  WP Charitable LLC
 * @package Charitable/Templates/Emails
 * @version 1.0.0
 * @version 1.8.8.6
 */

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

if ( ! isset( $_GET['email_id'] ) ) { // phpcs:ignore
	return;
}

$charitable_email        = charitable_get_helper( 'emails' )->get_email( esc_html( $_GET['email_id'] ) ); // phpcs:ignore
$charitable_email_object = new $charitable_email();

echo $charitable_email_object->preview(); // phpcs:ignore
```
