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/fields/default-fields/campaign-fields.php +32 -4 1.7.0 → 1.8.13 View file →
@@ -3,12 +3,12 @@
3 3 * Returns an array of all the default campaign fields.
4 4 *
5 5 * @package Charitable/Campaign Fields
6 6 * @author David Bisset
7 - * @copyright Copyright (c) 2022, WP Charitable LLC
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.6.0
10 - * @version 1.6.54
10 + * @version 1.8.9.1
11 11 */
12 12
13 13 // Exit if accessed directly.
14 14 if ( ! defined( 'ABSPATH' ) ) {
@@ -86,13 +86,13 @@
86 86 ),
87 87 'email_tag' => array(
88 88 'tag' => 'campaign_end_date',
89 89 'description' => __( 'The end date of the campaign', 'charitable' ),
90 - 'preview' => date( get_option( 'date_format', 'd/m/Y' ) ),
90 + 'preview' => date( get_option( 'date_format', 'd/m/Y' ) ), // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
91 91 ),
92 92 'show_in_export' => true,
93 93 ),
94 - 'end_time' => array(
94 + 'end_time' => array(
95 95 'label' => __( 'End Date Timestamp', 'charitable' ),
96 96 'data_type' => 'core',
97 97 'value_callback' => false,
98 98 'donation_form' => false,
@@ -122,8 +122,23 @@
122 122 ),
123 123 'email_tag' => false,
124 124 'show_in_export' => false,
125 125 ),
126 + 'minimum_donation_amount' => array(
127 + 'label' => __( 'Minimum Donation Amount', 'charitable' ),
128 + 'data_type' => 'meta',
129 + 'value_callback' => false,
130 + 'admin_form' => array(
131 + 'section' => 'campaign-donation-options',
132 + 'type' => 'number',
133 + 'title' => __( 'Minimum Donation Amount', 'charitable' ),
134 + 'view' => 'metaboxes/campaign-minimum-donation-amount',
135 + 'description' => __( 'Leave empty to allow no restrictions on how small the donation can be.', 'charitable' ),
136 + 'priority' => 11,
137 + ),
138 + 'email_tag' => false,
139 + 'show_in_export' => true,
140 + ),
126 141 'post_title' => array(
127 142 'label' => __( 'Title', 'charitable' ),
128 143 'data_type' => 'core',
129 144 'value_callback' => 'charitable_get_campaign_post_field',
@@ -172,8 +187,21 @@
172 187 'admin_form' => array(
173 188 'section' => 'campaign-extended-description',
174 189 'type' => 'text',
175 190 'view' => 'metaboxes/campaign-extended-description',
191 + 'priority' => 2,
192 + ),
193 + 'email_tag' => false,
194 + 'show_in_export' => false,
195 + ),
196 + 'page_settings' => array(
197 + 'label' => __( 'Campaign Summary', 'charitable' ),
198 + 'data_type' => 'core',
199 + 'value_callback' => 'charitable_get_campaign_post_field',
200 + 'admin_form' => array(
201 + 'section' => 'campaign-page-settings',
202 + 'type' => 'text',
203 + 'view' => 'metaboxes/campaign-page-settings',
176 204 'priority' => 2,
177 205 ),
178 206 'email_tag' => false,
179 207 'show_in_export' => false,