PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.11
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.11
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 / reports / charitable-admin-reports-hooks.php

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

95 lines 3.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Charitable Admin Report Hooks.
4 *
5 * Action/filter hooks used for setting up reports and activity monitoring in the admin.
6 *
7 * @package Charitable/Functions/Activity
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.1
12 */
13
14 // Exit if accessed directly.
15 if ( ! defined( 'ABSPATH' ) ) {
16 exit;
17 }
18
19 /**
20 * Get overview data via ajax, probably as a result of a changing UI element.
21 *
22 * @see Charitable_Reports_Ajax::get_overview_data()
23 */
24 add_action( 'wp_ajax_charitable_report_overview_data', array( Charitable_Reports_Ajax::get_instance(), 'get_overview_data' ) );
25
26 /**
27 * Get activity data via ajax, probably as a result of a changing UI element.
28 *
29 * @see Charitable_Reports_Ajax::get_activity_data()
30 */
31 add_action( 'wp_ajax_charitable_report_activity_data', array( Charitable_Reports_Ajax::get_instance(), 'get_activity_data' ) );
32
33 /**
34 * Get donor data via ajax, probably as a result of a changing UI element.
35 *
36 * @see Charitable_Reports_Ajax::get_donor_data()
37 */
38 add_action( 'wp_ajax_charitable_report_donor_data', array( Charitable_Reports_Ajax::get_instance(), 'get_donor_data' ) );
39
40 /**
41 * Get donor data via ajax, probably as a result of a changing UI element.
42 *
43 * @see Charitable_Reports_Ajax::get_donor_data()
44 */
45 add_action( 'wp_ajax_charitable_report_donor_data_pagination', array( Charitable_Reports_Ajax::get_instance(), 'get_donor_data' ) );
46
47 /**
48 * Get dashboard data via ajax, probably as a result of a changing UI element.
49 *
50 * @see Charitable_Reports_Ajax::get_dashboard_data()
51 */
52 add_action( 'wp_ajax_charitable_report_dashboard_data', array( Charitable_Reports_Ajax::get_instance(), 'get_dashboard_data' ) );
53
54 /**
55 * Get UI elements for the advanced report page.
56 *
57 * @see Charitable_Reports_Ajax::get_advanced_report_ui()
58 */
59 add_action( 'wp_ajax_charitable_report_advanced_ui', array( Charitable_Reports_Ajax::get_instance(), 'get_advanced_report_ui' ) );
60
61 /**
62 * Download a CSV or print info of the donations breakdown.
63 *
64 * @see Charitable_Reports_Download::download_donations_breakdown()
65 */
66 add_action( 'admin_init', array( Charitable_Reports_Download::get_instance(), 'download_donations_breakdown' ) );
67
68 /**
69 * Download a CSV or print info of the donations breakdown.
70 *
71 * @see Charitable_Reports_Download::download_donations_breakdown()
72 */
73 add_action( 'admin_init', array( Charitable_Reports_Download::get_instance(), 'download_activities' ) );
74
75 /**
76 * Download a CSV or print info of the donors.
77 *
78 * @see Charitable_Reports_Download::download_donors()
79 */
80 add_action( 'admin_init', array( Charitable_Reports_Download::get_instance(), 'download_donors' ) );
81
82 /**
83 * Download a CSV or print info of the advanced report.
84 *
85 * @see Charitable_Reports_Download::download_advanced()
86 */
87 add_action( 'admin_init', array( Charitable_Reports_Download::get_instance(), 'download_advanced' ) );
88
89 /**
90 * Request a PDF to be generated.
91 *
92 * @see Charitable_Reports_Download::generate_pdf()
93 */
94 add_action( 'admin_init', array( Charitable_Reports_Download::get_instance(), 'generate_pdf' ) );
95