| 1 |
<?php |
| 2 |
/** |
| 3 |
* Charitable Shortcodes Hooks. |
| 4 |
* |
| 5 |
* Action/filter hooks used for Charitable shortcodes |
| 6 |
* |
| 7 |
* @package Charitable/Functions/Shortcodes |
| 8 |
* @version 1.2.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 |
* Register shortcodes. |
| 18 |
* |
| 19 |
* @see Charitable_Campaigns_Shortcode::display() |
| 20 |
* @see Charitable_My_Donations_Shortcode::display() |
| 21 |
* @see Charitable_Donation_Receipt_Shortcode::display() |
| 22 |
* @see Charitable_Login_Shortcode::display() |
| 23 |
* @see Charitable_Registration_Shortcode::display() |
| 24 |
* @see Charitable_Profile_Shortcode::display() |
| 25 |
*/ |
| 26 |
add_shortcode( 'campaigns', array( 'Charitable_Campaigns_Shortcode', 'display' ) ); |
| 27 |
add_shortcode( 'donation_receipt', array( 'Charitable_Donation_Receipt_Shortcode', 'display' ) ); |
| 28 |
add_shortcode( 'charitable_my_donations', array( 'Charitable_My_Donations_Shortcode', 'display' ) ); |
| 29 |
add_shortcode( 'charitable_login', array( 'Charitable_Login_Shortcode', 'display' ) ); |
| 30 |
add_shortcode( 'charitable_registration', array( 'Charitable_Registration_Shortcode', 'display' ) ); |
| 31 |
add_shortcode( 'charitable_profile', array( 'Charitable_Profile_Shortcode', 'display' ) ); |
| 32 |
|
| 33 |
/** |
| 34 |
* Fingerprint the login form with our charitable=true hidden field |
| 35 |
* |
| 36 |
* @see Charitable_Login_Shortcode::add_hidden_field_to_login_form() |
| 37 |
*/ |
| 38 |
add_filter( 'login_form_bottom', array( 'Charitable_Login_Shortcode', 'add_hidden_field_to_login_form' ), 10, 2 ); |