PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.17.0
GiveWP – Donation Plugin and Fundraising Platform v4.17.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 2.3.2 All 256 releases
← All changes | includes/admin/shortcodes/shortcode-give-totals.php +16 -5 2.3.1 → 4.17.0 View file →
@@ -22,10 +22,10 @@
22 22 * Class constructor
23 23 */
24 24 public function __construct() {
25 25
26 - $this->shortcode['title'] = __( 'Give Totals', 'give' );
27 - $this->shortcode['label'] = __( 'Give Totals', 'give' );
26 + $this->shortcode['title'] = __( 'GiveWP Totals', 'give' );
27 + $this->shortcode['label'] = __( 'GiveWP Totals', 'give' );
28 28
29 29 parent::__construct( 'give_totals' );
30 30 }
31 31
@@ -70,9 +70,10 @@
70 70
71 71 return array(
72 72 array(
73 73 'type' => 'container',
74 - 'html' => sprintf( '<p class="give-totals-shortcode-container-message">%s</p>',
74 + 'html' => sprintf(
75 + '<p class="give-totals-shortcode-container-message">%s</p>',
75 76 __( 'This shortcode shows the total amount raised towards a custom goal for one or several forms regardless of whether they have goals enabled or not.', 'give' )
76 77 ),
77 78 ),
78 79 array(
@@ -129,10 +130,20 @@
129 130 'false' => __( 'Hide', 'give' ),
130 131 ),
131 132 'value' => 'true',
132 133 ),
133 -
134 + array(
135 + 'type' => 'docs_link',
136 + 'text' => esc_html__( 'Learn more about the Donation Totals Shortcode', 'give' ),
137 + 'link' => 'http://docs.givewp.com/shortcode-donation-totals',
138 + ),
134 139 );
135 140 }
136 141 }
137 142
138 -new Give_Shortcode_Totals;
143 +/**
144 + * @since 4.3.0 use init action
145 + */
146 +add_action( 'init', static function () {
147 + new Give_Shortcode_Totals();
148 +});
149 +