PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.12.2
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.12.2
1.8.13.1 1.8.13 1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 All 212 releases
charitable / includes / admin / tracking / charitable-tracking-admin-hooks.php

charitable-tracking-admin-hooks.php in Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) 1.8.12.2, at includes/admin/tracking/charitable-tracking-admin-hooks.php

64 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Charitable Tracking Hooks.
4 *
5 * Action/filter hooks used for Charitable Tracking.
6 *
7 * @package Charitable/Functions/Admin
8 * @author David Bisset
9 * @copyright Copyright (c) 2023, WP Charitable LLC
10 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
11 * @since 1.8.4
12 */
13
14 // Exit if accessed directly.
15 if ( ! defined( 'ABSPATH' ) ) {
16 exit;
17 }
18
19 /**
20 * Cron stuff.
21 *
22 * @see Charitable_Tracking::schedule_send()
23 * @see Charitable_Tracking::add_schedules()
24 */
25 /**
26 * MOVED in 1.8.12 to includes/tracking/charitable-tracking-hooks.php.
27 *
28 * These were admin-only, so the weekly check-in never ran in a wp-cron.php
29 * request and the recurring event was destroyed on its first firing. Do NOT
30 * re-add them here.
31 */
32
33 /**
34 * Register the check-in.
35 *
36 * @see Charitable_Tracking::send_checkin()
37 */
38 /* The charitable_usage_tracking_cron handler also moved; see above. */
39
40 /**
41 * Testing the check-in.
42 *
43 * @see Charitable_Tracking::test_checkin()
44 */
45 add_action( 'init', array( Charitable_Tracking::get_instance(), 'test_checkin' ) );
46
47 /**
48 * Save the time to first campaign.
49 *
50 * @see Charitable_Tracking::insert_time_to_first_campaign()
51 */
52 /* The first-campaign writer moved; see above. */
53
54 /**
55 * Save the time to first donation.
56 *
57 * @see Charitable_Tracking::insert_time_to_first_donation()
58 */
59 /*
60 * The first-donation writer moved too. charitable_after_save_donation fires
61 * during front-end checkout, so registering it here meant it never fired for a
62 * real donation. Present since 1.8.4.5.
63 */
64