# charitable/1.8.11.1/includes/admin/tracking/charitable-tracking-admin-hooks.php

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

- Page: https://pluginprobe.com/plugins/charitable/1.8.11.1/code/includes/admin/tracking/charitable-tracking-admin-hooks.php
- Raw: https://pluginprobe.com/plugins/charitable/1.8.11.1/raw/includes/admin/tracking/charitable-tracking-admin-hooks.php
- Modified: 2025-02-20T16:43:24+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.11.1/code/includes/admin/tracking/charitable-tracking-admin-hooks.php#L10-L20`.

```php
<?php
/**
 * Charitable Tracking Hooks.
 *
 * Action/filter hooks used for Charitable Tracking.
 *
 * @package   Charitable/Functions/Admin
 * @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.4
 */

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

/**
 * Cron stuff.
 *
 * @see     Charitable_Tracking::schedule_send()
 * @see     Charitable_Tracking::add_schedules()
 */
add_action( 'init', array( Charitable_Tracking::get_instance(), 'schedule_send' ) );
add_action( 'cron_schedules', array( Charitable_Tracking::get_instance(), 'add_schedules' ) );

/**
 * Register the check-in.
 *
 * @see     Charitable_Tracking::send_checkin()
 */
add_action( 'charitable_usage_tracking_cron', array( Charitable_Tracking::get_instance(), 'send_checkins' ) );

/**
 * Testing the check-in.
 *
 * @see     Charitable_Tracking::test_checkin()
 */
add_action( 'init', array( Charitable_Tracking::get_instance(), 'test_checkin' ) );

/**
 * Save the time to first campaign.
 *
 * @see     Charitable_Tracking::insert_time_to_first_campaign()
 */
add_action( 'charitable_campaign_processor_save_core', array( Charitable_Tracking::get_instance(), 'insert_time_to_first_campaign' ), 10, 4 );

/**
 * Save the time to first donation.
 *
 * @see     Charitable_Tracking::insert_time_to_first_donation()
 */
add_action( 'charitable_after_save_donation', array( Charitable_Tracking::get_instance(), 'insert_time_to_first_donation' ), 10, 2 );

```
