# charitable/1.7.0.3/templates/tables/header.php

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

- Page: https://pluginprobe.com/plugins/charitable/1.7.0.3/code/templates/tables/header.php
- Raw: https://pluginprobe.com/plugins/charitable/1.7.0.3/raw/templates/tables/header.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.3/code/templates/tables/header.php#L10-L20`.

```php
<?php
/**
 * Displays the table header.
 *
 * Override this template by copying it to yourtheme/charitable/tables/header.php
 *
 * @author  WP Charitable LLC
 * @package Charitable/Templates/Tables
 * @since   1.5.0
 * @version 1.5.0
 */

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

if ( ! array_key_exists( 'helper', $view_args ) ) {
    return;
}

?>
<tr>
    <?php foreach ( $view_args['helper']->columns as $key => $header ) : ?>
    <th scope="col" class="charitable-table-header-<?php echo esc_attr( $key ) ?>"><?php echo $header ?></th>
    <?php endforeach ?>
</tr>

```
