| @@ -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 ); | |