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 | templates/content-donation-form.php +18 -7 1.7.0.2 → 1.8.13 View file →
@@ -7,8 +7,9 @@
7 7 * @author WP Charitable LLC
8 8 * @package Charitable/Templates/Campaign
9 9 * @since 1.0.0
10 10 * @version 1.0.0
11 + * @version 1.8.8.6
11 12 */
12 13
13 14 // Exit if accessed directly.
14 15 if ( ! defined( 'ABSPATH' ) ) {
@@ -22,24 +23,34 @@
22 23 * instead.
23 24 *
24 25 * @var Charitable_Donation_Form_Interface
25 26 */
26 -$form = charitable_get_current_donation_form();
27 +$charitable_form = charitable_get_current_donation_form();
27 28
28 -if ( ! $form ) {
29 +if ( ! $charitable_form ) {
29 30 return;
30 31 }
31 32
32 33 /**
33 - * @hook charitable_donation_form_before
34 + * Add something before the donation form.
35 + *
36 + * @hook charitable_donation_form_before
37 + *
38 + * @param Charitable_Donation_Form_Interface $form The donation form object.
34 39 */
35 -do_action( 'charitable_donation_form_before', $form );
40 +do_action( 'charitable_donation_form_before', $charitable_form );
36 41
37 42 /**
38 43 * Render the donation form.
44 + *
45 + * @param Charitable_Donation_Form_Interface $form The donation form object.
39 46 */
40 -$form->render();
47 +$charitable_form->render();
41 48
42 49 /**
43 - * @hook charitable_donation_form_after
50 + * Add something after the donation form.
51 + *
52 + * @hook charitable_donation_form_after
53 + *
54 + * @param Charitable_Donation_Form_Interface $form The donation form object.
44 55 */
45 -do_action( 'charitable_donation_form_after', $form );
56 +do_action( 'charitable_donation_form_after', $charitable_form );