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.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 1.7.0.9 All 211 releases
← All changes | includes/public/charitable-template-hooks.php +20 -4 1.7.0.2 → 1.8.13 View file →
@@ -5,12 +5,12 @@
5 5 * Action/filter hooks used for Charitable functions/templates
6 6 *
7 7 * @package Charitable/Functions/Templates
8 8 * @author David Bisset
9 - * @copyright Copyright (c) 2022, WP Charitable LLC
9 + * @copyright Copyright (c) 2023, WP Charitable LLC
10 10 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
11 11 * @since 1.0.0
12 - * @version 1.5.0
12 + * @version 1.7.0.9
13 13 */
14 14
15 15 // Exit if accessed directly.
16 16 if ( ! defined( 'ABSPATH' ) ) {
@@ -41,8 +41,15 @@
41 41 * @see charitable_template_campaign_donor_count()
42 42 * @see charitable_template_campaign_time_left()
43 43 * @see charitable_template_donate_button()
44 44 */
45 +
46 +/* Newly added filters in 1.7.0.9. for campaign page settings */
47 +add_filter( 'charitable_display_template_campaign_percentage_raised', 'charitable_maybe_hide_campaign_percentage_raised', 4, 2 );
48 +add_filter( 'charitable_display_template_campaign_donor_count', 'charitable_maybe_hide_campaign_donor_count', 4, 2 );
49 +add_filter( 'charitable_donation_summary', 'charitable_maybe_hide_campaign_amount_donated', 20, 4 );
50 +add_filter( 'charitable_display_template_campaign_time_remaining', 'charitable_maybe_hide_campaign_time_remaining', 4, 2 );
51 +
45 52 add_action( 'charitable_campaign_summary', 'charitable_template_campaign_percentage_raised', 4 );
46 53 add_action( 'charitable_campaign_summary', 'charitable_template_campaign_donation_summary', 6 );
47 54 add_action( 'charitable_campaign_summary', 'charitable_template_campaign_donor_count', 8 );
48 55 add_action( 'charitable_campaign_summary', 'charitable_template_campaign_time_left', 10 );
@@ -72,8 +79,10 @@
72 79
73 80 /**
74 81 * Campaigns loop, after the main title.
75 82 *
83 + * @version 1.8.2 added 2nd parameter to charitable_template_campaign_description()
84 + *
76 85 * @see charitable_template_campaign_description()
77 86 * @see charitable_template_campaign_progress_bar()
78 87 * @see charitable_template_campaign_loop_donation_stats()
79 88 * @see charitable_template_campaign_donate_link()
@@ -78,9 +87,9 @@
78 87 * @see charitable_template_campaign_loop_donation_stats()
79 88 * @see charitable_template_campaign_donate_link()
80 89 * @see charitable_template_campaign_loop_more_link()
81 90 */
82 -add_action( 'charitable_campaign_content_loop_after', 'charitable_template_campaign_description', 4 );
91 +add_action( 'charitable_campaign_content_loop_after', 'charitable_template_campaign_description', 4, 2 );
83 92 add_action( 'charitable_campaign_content_loop_after', 'charitable_template_campaign_progress_bar', 6 );
84 93 add_action( 'charitable_campaign_content_loop_after', 'charitable_template_campaign_loop_donation_stats', 8 );
85 94 add_action( 'charitable_campaign_content_loop_after', 'charitable_template_campaign_loop_donate_link', 10, 2 );
86 95 add_action( 'charitable_campaign_content_loop_after', 'charitable_template_campaign_loop_more_link', 10, 2 );
@@ -102,8 +111,15 @@
102 111 */
103 112 add_action( 'wp_footer', 'charitable_template_campaign_modal_donation_window' );
104 113
105 114 /**
115 + * Footer, right before the closing body tag (for Elementor widgets).
116 + *
117 + * @see charitable_template_elementor_campaign_modal_donation_window()
118 + */
119 +add_action( 'wp_footer', 'charitable_template_elementor_campaign_modal_donation_window' );
120 +
121 +/**
106 122 * Add the login form before the donation form, outside the <form> tags
107 123 *
108 124 * @see charitable_template_donation_form_login()
109 125 */
@@ -120,5 +136,5 @@
120 136 * Add a link to the login form after the registration form.
121 137 *
122 138 * @see charitable_template_form_login_link()
123 139 */
124 -add_action( 'charitable_user_registration_after', 'charitable_template_form_login_link' );
140 +add_action( 'charitable_user_registration_after', 'charitable_template_form_login_link' );