# charitable/1.8.13/templates/donation-form/meta-fields.php

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

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

```php
<?php
/**
 * The template used to display the user fields.
 *
 * @author 	WP Charitable LLC
 * @package Charitable/Templates/Donation Form
 * @since   1.0.0
 * @version 1.5.0
 * @version 1.8.8.6
 */

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

if ( ! isset( $view_args['form'] ) || ! isset( $view_args['field'] ) ) {
	return;
}

$charitable_form   = $view_args['form'];
$charitable_field  = $view_args['field'];
$charitable_fields = isset( $charitable_field['fields'] ) ? $charitable_field['fields'] : array();

if ( empty( $charitable_fields ) ) {
	return;
}

?>
<div id="charitable-meta-fields">
	<?php if ( isset( $charitable_field['legend'] ) ) : ?>
		<div class="charitable-form-header"><?php echo esc_html( $charitable_field['legend'] ); ?></div>
	<?php endif; ?>
	<?php $charitable_form->view()->render_fields( $charitable_fields ); ?>
</div><!-- #charitable-meta-fields -->

```
