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 | src/DonationForms/ServiceProvider.php +8 -0 4.16.1 → 4.17.0 View file →
@@ -5,8 +5,10 @@
5 5 use Exception;
6 6 use Give\DonationForms\OrphanedForms\Actions\Assets as OrphanedFormsAssets;
7 7 use Give\DonationForms\Actions\AddHoneyPotFieldToDonationForms;
8 8 use Give\DonationForms\Actions\DispatchDonateControllerDonationCreatedListeners;
9 +use Give\DonationForms\Actions\GenerateExternalEmbedScriptUrl;
10 +use Give\DonationForms\Actions\GetExternalEmbedScriptData;
9 11 use Give\DonationForms\Actions\DispatchDonateControllerSubscriptionCreatedListeners;
10 12 use Give\DonationForms\Actions\PrintFormMetaTags;
11 13 use Give\DonationForms\Actions\RegisterFormEntity;
12 14 use Give\DonationForms\Actions\ReplaceGiveReceiptShortcodeViewWithDonationConfirmationIframe;
@@ -191,8 +193,14 @@
191 193 /**
192 194 * @since 3.0.0
193 195 */
194 196 Route::post('authenticate', AuthenticationRoute::class);
197 +
198 + /**
199 + * @since 4.17.0
200 + */
201 + Route::script(GenerateExternalEmbedScriptUrl::URI, GIVE_PLUGIN_DIR . 'build/donationFormExternalEmbed.js')
202 + ->localize('givewpDonationFormEmbed', new GetExternalEmbedScriptData());
195 203
196 204 /**
197 205 * @since 3.22.0 Add locale support
198 206 * @since 3.0.0