← All changes
|
includes/shortcodes/charitable-shortcodes-hooks.php
+12
-1
1.7.0.3
→
1.8.13
View file →
| @@ -5,10 +5,11 @@ | ||
| 5 | 5 | * Action/filter hooks used for Charitable shortcodes |
| 6 | 6 | * |
| 7 | 7 | * @package Charitable/Functions/Shortcodes |
| 8 | 8 | * @version 1.2.0 |
| 9 | + * @version 1.8.2 - Added donate button shortcode. | |
| 9 | 10 | * @author David Bisset |
| 10 | - * @copyright Copyright (c) 2022, WP Charitable LLC | |
| 11 | + * @copyright Copyright (c) 2023, WP Charitable LLC | |
| 11 | 12 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| 12 | 13 | */ |
| 13 | 14 | |
| 14 | 15 | // Exit if accessed directly. |
| @@ -28,8 +29,10 @@ | ||
| 28 | 29 | * @see Charitable_Logout_Shortcode::display() |
| 29 | 30 | * @see Charitable_Registration_Shortcode::display() |
| 30 | 31 | * @see Charitable_Profile_Shortcode::display() |
| 31 | 32 | * @see Charitable_Email_Shortcode::display() |
| 33 | + * @see Charitable_Stat_Shortcode::display() | |
| 34 | + * @see Charitable_Donate_Button_Shortcode::display() | |
| 32 | 35 | */ |
| 33 | 36 | add_shortcode( 'campaigns', array( 'Charitable_Campaigns_Shortcode', 'display' ) ); |
| 34 | 37 | add_shortcode( 'charitable_donors', array( 'Charitable_Donors_Shortcode', 'display' ) ); |
| 35 | 38 | add_shortcode( 'charitable_donation_form', array( 'Charitable_Donation_Form_Shortcode', 'display' ) ); |
| @@ -40,8 +43,9 @@ | ||
| 40 | 43 | add_shortcode( 'charitable_registration', array( 'Charitable_Registration_Shortcode', 'display' ) ); |
| 41 | 44 | add_shortcode( 'charitable_profile', array( 'Charitable_Profile_Shortcode', 'display' ) ); |
| 42 | 45 | add_shortcode( 'charitable_stat', array( 'Charitable_Stat_Shortcode', 'display' ) ); |
| 43 | 46 | add_shortcode( 'charitable_email', array( 'Charitable_Email_Shortcode', 'display' ) ); |
| 47 | +add_shortcode( 'charitable_donate_button', array( 'Charitable_Donate_Button_Shortcode', 'display' ) ); | |
| 44 | 48 | |
| 45 | 49 | /** |
| 46 | 50 | * Fingerprint the login form with our charitable=true hidden field. |
| 47 | 51 | * |
| @@ -64,4 +68,11 @@ | ||
| 64 | 68 | * @see Charitable_Email_Shortcode::flush() |
| 65 | 69 | */ |
| 66 | 70 | add_action( 'charitable_after_send_email', array( 'Charitable_Email_Shortcode', 'flush' ) ); |
| 67 | 71 | add_action( 'charitable_after_preview_email', array( 'Charitable_Email_Shortcode', 'flush' ) ); |
| 72 | + | |
| 73 | +/** | |
| 74 | + * Campaign shortcode for visual campaign. | |
| 75 | + * | |
| 76 | + * @see Charitable_Campaign_Shortcode::display() | |
| 77 | + */ | |
| 78 | +add_shortcode( 'campaign', array( 'Charitable_Campaign_Shortcode', 'display' ) ); | |