PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13
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
← All changes | includes/shortcodes/charitable-shortcodes-hooks.php +16 -3 1.6.7 → 1.8.13 View file →
@@ -5,15 +5,18 @@
5 5 * Action/filter hooks used for Charitable shortcodes
6 6 *
7 7 * @package Charitable/Functions/Shortcodes
8 8 * @version 1.2.0
9 - * @author Eric Daams
10 - * @copyright Copyright (c) 2018, Studio 164a
9 + * @version 1.8.2 - Added donate button shortcode.
10 + * @author David Bisset
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.
15 -if ( ! defined( 'ABSPATH' ) ) { exit; }
16 +if ( ! defined( 'ABSPATH' ) ) {
17 + exit;
18 +}
16 19
17 20 /**
18 21 * Register shortcodes.
19 22 *
@@ -26,8 +29,10 @@
26 29 * @see Charitable_Logout_Shortcode::display()
27 30 * @see Charitable_Registration_Shortcode::display()
28 31 * @see Charitable_Profile_Shortcode::display()
29 32 * @see Charitable_Email_Shortcode::display()
33 + * @see Charitable_Stat_Shortcode::display()
34 + * @see Charitable_Donate_Button_Shortcode::display()
30 35 */
31 36 add_shortcode( 'campaigns', array( 'Charitable_Campaigns_Shortcode', 'display' ) );
32 37 add_shortcode( 'charitable_donors', array( 'Charitable_Donors_Shortcode', 'display' ) );
33 38 add_shortcode( 'charitable_donation_form', array( 'Charitable_Donation_Form_Shortcode', 'display' ) );
@@ -38,8 +43,9 @@
38 43 add_shortcode( 'charitable_registration', array( 'Charitable_Registration_Shortcode', 'display' ) );
39 44 add_shortcode( 'charitable_profile', array( 'Charitable_Profile_Shortcode', 'display' ) );
40 45 add_shortcode( 'charitable_stat', array( 'Charitable_Stat_Shortcode', 'display' ) );
41 46 add_shortcode( 'charitable_email', array( 'Charitable_Email_Shortcode', 'display' ) );
47 +add_shortcode( 'charitable_donate_button', array( 'Charitable_Donate_Button_Shortcode', 'display' ) );
42 48
43 49 /**
44 50 * Fingerprint the login form with our charitable=true hidden field.
45 51 *
@@ -62,4 +68,11 @@
62 68 * @see Charitable_Email_Shortcode::flush()
63 69 */
64 70 add_action( 'charitable_after_send_email', array( 'Charitable_Email_Shortcode', 'flush' ) );
65 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' ) );