| 1 |
<?php |
| 2 |
/** |
| 3 |
* Charitable User Hooks. |
| 4 |
* |
| 5 |
* Action/filter hooks used for Charitable user registrations & profile changes. |
| 6 |
* |
| 7 |
* @package Charitable/Functions/Donations |
| 8 |
* @version 1.0.0 |
| 9 |
* @author Eric Daams |
| 10 |
* @copyright Copyright (c) 2015, Studio 164a |
| 11 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| 12 |
*/ |
| 13 |
|
| 14 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 15 |
|
| 16 |
/** |
| 17 |
* Save a profile. |
| 18 |
* |
| 19 |
* @see Charitable_Profile_Form::update_profile() |
| 20 |
*/ |
| 21 |
add_action( 'charitable_update_profile', array( 'Charitable_Profile_Form', 'update_profile' ) ); |
| 22 |
|
| 23 |
/** |
| 24 |
* Save a user after registration. |
| 25 |
* |
| 26 |
* @see Charitable_Registration_Form::save_registration() |
| 27 |
*/ |
| 28 |
add_action( 'charitable_save_registration', array( 'Charitable_Registration_Form', 'save_registration' ) ); |