| @@ -3,17 +3,20 @@ | ||
| 3 | 3 | * Charitable AJAX Hooks. |
| 4 | 4 | * |
| 5 | 5 | * Action/filter hooks used for Charitable AJAX setup. |
| 6 | 6 | * |
| 7 | - * @package Charitable/Functions/AJAX | |
| 8 | - * @version 1.2.3 | |
| 9 | - * @author Eric Daams | |
| 10 | - * @copyright Copyright (c) 2019, Studio 164a | |
| 11 | - * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License | |
| 7 | + * @package Charitable/Functions/AJAX | |
| 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.2.3 | |
| 12 | + * @version 1.6.28 | |
| 12 | 13 | */ |
| 13 | 14 | |
| 14 | 15 | // Exit if accessed directly. |
| 15 | -if ( ! defined( 'ABSPATH' ) ) { exit; } | |
| 16 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 17 | + exit; | |
| 18 | +} | |
| 16 | 19 | |
| 17 | 20 | /** |
| 18 | 21 | * Retrieve a campaign's donation form via AJAX. |
| 19 | 22 | * |
| @@ -28,8 +31,15 @@ | ||
| 28 | 31 | * @see charitable_plupload_image_upload |
| 29 | 32 | */ |
| 30 | 33 | add_action( 'wp_ajax_charitable_plupload_image_upload', 'charitable_plupload_image_upload' ); |
| 31 | 34 | add_action( 'wp_ajax_nopriv_charitable_plupload_image_upload', 'charitable_plupload_image_upload' ); |
| 35 | + | |
| 36 | +/** | |
| 37 | + * Retrieve the details for a particular donor. | |
| 38 | + * | |
| 39 | + * @see charitable_ajax_get_donor_data | |
| 40 | + */ | |
| 41 | +add_action( 'wp_ajax_charitable_get_donor_data', 'charitable_ajax_get_donor_data' ); | |
| 32 | 42 | |
| 33 | 43 | /** |
| 34 | 44 | * Get session content. |
| 35 | 45 | * |