# charitable/1.8.13/includes/admin/charitable-dashboard-hooks.php

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

- Page: https://pluginprobe.com/plugins/charitable/1.8.13/code/includes/admin/charitable-dashboard-hooks.php
- Raw: https://pluginprobe.com/plugins/charitable/1.8.13/raw/includes/admin/charitable-dashboard-hooks.php
- Modified: 2026-08-13T10:10:38+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/includes/admin/charitable-dashboard-hooks.php#L10-L20`.

```php
<?php
/**
 * Charitable Dashboard Hooks.
 *
 * Action/filter hooks used for dashboard functionality in the admin.
 *
 * @package   Charitable/Functions/Dashboard
 * @author    David Bisset
 * @copyright Copyright (c) 2023, WP Charitable LLC
 * @license   http://opensource.org/licenses/gpl-2.0.php GNU Public License
 * @since     1.8.1
 */

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

/**
 * Get dashboard data via ajax, probably as a result of a changing UI element.
 *
 * @see Charitable_Dashboard_Ajax::get_dashboard_data()
 */
add_action( 'wp_ajax_charitable_dashboard_data', array( Charitable_Dashboard_Ajax::get_instance(), 'get_dashboard_data' ) );

/**
 * Record a click on the dashboard "Free Site Analysis" promo button (consent-gated usage tracking).
 *
 * @see Charitable_Dashboard::ajax_track_site_analysis_click()
 */
add_action( 'wp_ajax_charitable_track_site_analysis_click', array( Charitable_Dashboard::get_instance(), 'ajax_track_site_analysis_click' ) );

```
