PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13.1
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13.1
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/fields/default-fields/donation-fields.php +11 -0 1.8.12.1 → 1.8.13.1 View file →
@@ -7,8 +7,9 @@
7 7 * @copyright Copyright (c) 2023, WP Charitable LLC
8 8 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
9 9 * @since 1.5.0
10 10 * @version 1.6.55
11 + * @version 1.8.13.1 Added autocomplete tokens to the personal donation form fields.
11 12 */
12 13
13 14 // Exit if accessed directly.
14 15 if ( ! defined( 'ABSPATH' ) ) {
@@ -48,8 +49,9 @@
48 49 'donation_form' => array(
49 50 'label' => __( 'First name', 'charitable' ),
50 51 'priority' => 4,
51 52 'required' => true,
53 + 'attrs' => array( 'autocomplete' => 'given-name' ),
52 54 ),
53 55 'admin_form' => array(
54 56 'required' => false,
55 57 ),
@@ -68,8 +70,9 @@
68 70 'donation_form' => array(
69 71 'label' => __( 'Last name', 'charitable' ),
70 72 'priority' => 6,
71 73 'required' => true,
74 + 'attrs' => array( 'autocomplete' => 'family-name' ),
72 75 ),
73 76 'admin_form' => array(
74 77 'required' => false,
75 78 ),
@@ -102,8 +105,9 @@
102 105 'type' => 'email',
103 106 'label' => __( 'Email', 'charitable' ),
104 107 'priority' => 8,
105 108 'required' => true,
109 + 'attrs' => array( 'autocomplete' => 'email' ),
106 110 ),
107 111 'admin_form' => array(
108 112 'required' => false,
109 113 ),
@@ -143,8 +147,9 @@
143 147 'value_callback' => 'charitable_get_donor_meta_value',
144 148 'donation_form' => array(
145 149 'priority' => 10,
146 150 'required' => false,
151 + 'attrs' => array( 'autocomplete' => 'address-line1' ),
147 152 ),
148 153 'admin_form' => true,
149 154 'email_tag' => false,
150 155 'show_in_meta' => false,
@@ -156,8 +161,9 @@
156 161 'value_callback' => 'charitable_get_donor_meta_value',
157 162 'donation_form' => array(
158 163 'priority' => 12,
159 164 'required' => false,
165 + 'attrs' => array( 'autocomplete' => 'address-line2' ),
160 166 ),
161 167 'admin_form' => true,
162 168 'email_tag' => false,
163 169 'show_in_meta' => false,
@@ -169,8 +175,9 @@
169 175 'value_callback' => 'charitable_get_donor_meta_value',
170 176 'donation_form' => array(
171 177 'priority' => 14,
172 178 'required' => false,
179 + 'attrs' => array( 'autocomplete' => 'address-level2' ),
173 180 ),
174 181 'admin_form' => true,
175 182 'email_tag' => false,
176 183 'show_in_meta' => false,
@@ -182,8 +189,9 @@
182 189 'value_callback' => 'charitable_get_donor_meta_value',
183 190 'donation_form' => array(
184 191 'priority' => 16,
185 192 'required' => false,
193 + 'attrs' => array( 'autocomplete' => 'address-level1' ),
186 194 ),
187 195 'admin_form' => true,
188 196 'email_tag' => false,
189 197 'show_in_meta' => false,
@@ -195,8 +203,9 @@
195 203 'value_callback' => 'charitable_get_donor_meta_value',
196 204 'donation_form' => array(
197 205 'priority' => 18,
198 206 'required' => false,
207 + 'attrs' => array( 'autocomplete' => 'postal-code' ),
199 208 ),
200 209 'admin_form' => true,
201 210 'email_tag' => false,
202 211 'show_in_meta' => false,
@@ -211,8 +220,9 @@
211 220 'required' => false,
212 221 'type' => 'select',
213 222 'options' => charitable_get_location_helper()->get_countries(),
214 223 'default' => charitable_get_option( 'country' ),
224 + 'attrs' => array( 'autocomplete' => 'country' ),
215 225 ),
216 226 'admin_form' => true,
217 227 'email_tag' => false,
218 228 'show_in_meta' => false,
@@ -224,8 +234,9 @@
224 234 'value_callback' => 'charitable_get_donor_meta_value',
225 235 'donation_form' => array(
226 236 'priority' => 22,
227 237 'required' => false,
238 + 'attrs' => array( 'autocomplete' => 'tel' ),
228 239 ),
229 240 'admin_form' => true,
230 241 'email_tag' => array(
231 242 'tag' => 'donor_phone',