PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.18.0
GiveWP – Donation Plugin and Fundraising Platform v4.18.0
4.18.0 4.17.0 4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 All 257 releases
← All changes | includes/admin/shortcodes/shortcode-give-receipt.php +35 -25 2.3.1 → 4.18.0 View file →
@@ -42,21 +42,21 @@
42 42 'type' => 'container',
43 43 'html' => sprintf( '<p class="strong">%s</p>', esc_html__( 'Optional settings', 'give' ) ),
44 44 ),
45 45 array(
46 - 'type' => 'listbox',
47 - 'name' => 'price',
48 - 'label' => esc_html__( 'Show Donation Amount:', 'give' ),
49 - 'options' => array(
46 + 'type' => 'listbox',
47 + 'name' => 'price',
48 + 'label' => esc_html__( 'Show Donation Amount:', 'give' ),
49 + 'options' => array(
50 50 'false' => esc_html__( 'Hide', 'give' ),
51 51 ),
52 52 'placeholder' => esc_html__( 'Show', 'give' ),
53 53 ),
54 54 array(
55 - 'type' => 'listbox',
56 - 'name' => 'donor',
57 - 'label' => esc_html__( 'Show Donor Name:', 'give' ),
58 - 'options' => array(
55 + 'type' => 'listbox',
56 + 'name' => 'donor',
57 + 'label' => esc_html__( 'Show Donor Name:', 'give' ),
58 + 'options' => array(
59 59 'true' => esc_html__( 'Show', 'give' ),
60 60 'false' => esc_html__( 'Hide', 'give' ),
61 61 ),
62 62 'placeholder' => esc_html__( 'Show', 'give' ),
@@ -61,44 +61,54 @@
61 61 ),
62 62 'placeholder' => esc_html__( 'Show', 'give' ),
63 63 ),
64 64 array(
65 - 'type' => 'listbox',
66 - 'name' => 'date',
67 - 'label' => esc_html__( 'Show Date:', 'give' ),
68 - 'options' => array(
65 + 'type' => 'listbox',
66 + 'name' => 'date',
67 + 'label' => esc_html__( 'Show Date:', 'give' ),
68 + 'options' => array(
69 69 'false' => esc_html__( 'Hide', 'give' ),
70 70 ),
71 71 'placeholder' => esc_html__( 'Show', 'give' ),
72 72 ),
73 73 array(
74 - 'type' => 'listbox',
75 - 'name' => 'payment_method',
76 - 'label' => esc_html__( 'Show Payment Method:', 'give' ),
77 - 'options' => array(
74 + 'type' => 'listbox',
75 + 'name' => 'payment_method',
76 + 'label' => esc_html__( 'Show Payment Method:', 'give' ),
77 + 'options' => array(
78 78 'false' => esc_html__( 'Hide', 'give' ),
79 79 ),
80 80 'placeholder' => esc_html__( 'Show', 'give' ),
81 81 ),
82 82 array(
83 - 'type' => 'listbox',
84 - 'name' => 'payment_id',
85 - 'label' => esc_html__( 'Show Payment ID:', 'give' ),
86 - 'options' => array(
83 + 'type' => 'listbox',
84 + 'name' => 'payment_id',
85 + 'label' => esc_html__( 'Show Payment ID:', 'give' ),
86 + 'options' => array(
87 87 'false' => esc_html__( 'Hide', 'give' ),
88 88 ),
89 89 'placeholder' => esc_html__( 'Show', 'give' ),
90 90 ),
91 91 array(
92 - 'type' => 'listbox',
93 - 'name' => 'company_name',
94 - 'label' => esc_html__( 'Company Name:', 'give' ),
95 - 'options' => array(
92 + 'type' => 'listbox',
93 + 'name' => 'company_name',
94 + 'label' => esc_html__( 'Company Name:', 'give' ),
95 + 'options' => array(
96 96 'true' => esc_html__( 'Show', 'give' ),
97 97 ),
98 98 'placeholder' => esc_html__( 'Hide', 'give' ),
99 99 ),
100 + array(
101 + 'type' => 'docs_link',
102 + 'text' => esc_html__( 'Learn more about the Donation Receipt Shortcode', 'give' ),
103 + 'link' => 'http://docs.givewp.com/shortcode-donation-receipt',
104 + ),
100 105 );
101 106 }
102 107 }
103 108
104 -new Give_Shortcode_Donation_Receipt;
109 +/**
110 + * @since 4.3.0 use init action
111 + */
112 +add_action( 'init', static function () {
113 + new Give_Shortcode_Donation_Receipt();
114 +});