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 +39 -38 2.3.0 → 4.18.0 View file →
@@ -3,9 +3,9 @@
3 3 * The [give_receipt] Shortcode Generator class
4 4 *
5 5 * @package Give
6 6 * @subpackage Admin
7 - * @copyright Copyright (c) 2016, WordImpress
7 + * @copyright Copyright (c) 2016, GiveWP
8 8 * @license https://opensource.org/licenses/gpl-license GNU Public License
9 9 * @since 1.3.0
10 10 */
11 11
@@ -42,72 +42,73 @@
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 - 'placeholder' => esc_html__( 'Show', 'give' )
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 - 'placeholder' => esc_html__( 'Show', 'give' )
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_key',
76 - 'label' => esc_html__( 'Show Payment Key:', 'give' ),
77 - 'options' => array(
78 - 'true' => esc_html__( 'Show', 'give' ),
79 - ),
80 - 'placeholder' => esc_html__( 'Hide', 'give' ),
81 - ),
82 - array(
83 - 'type' => 'listbox',
84 - 'name' => 'payment_method',
85 - 'label' => esc_html__( 'Show Payment Method:', 'give' ),
86 - 'options' => array(
74 + 'type' => 'listbox',
75 + 'name' => 'payment_method',
76 + 'label' => esc_html__( 'Show Payment Method:', 'give' ),
77 + 'options' => array(
87 78 'false' => esc_html__( 'Hide', 'give' ),
88 79 ),
89 80 'placeholder' => esc_html__( 'Show', 'give' ),
90 81 ),
91 82 array(
92 - 'type' => 'listbox',
93 - 'name' => 'payment_id',
94 - 'label' => esc_html__( 'Show Payment ID:', 'give' ),
95 - 'options' => array(
83 + 'type' => 'listbox',
84 + 'name' => 'payment_id',
85 + 'label' => esc_html__( 'Show Payment ID:', 'give' ),
86 + 'options' => array(
96 87 'false' => esc_html__( 'Hide', 'give' ),
97 88 ),
98 89 'placeholder' => esc_html__( 'Show', 'give' ),
99 90 ),
100 91 array(
101 - 'type' => 'listbox',
102 - 'name' => 'company_name',
103 - 'label' => esc_html__( 'Company Name:', 'give' ),
104 - 'options' => array(
92 + 'type' => 'listbox',
93 + 'name' => 'company_name',
94 + 'label' => esc_html__( 'Company Name:', 'give' ),
95 + 'options' => array(
105 96 'true' => esc_html__( 'Show', 'give' ),
106 97 ),
107 - 'placeholder' => esc_html__( 'Hide', 'give' )
98 + 'placeholder' => esc_html__( 'Hide', 'give' ),
108 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 + ),
109 105 );
110 106 }
111 107 }
112 108
113 -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 +});