PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.9
GiveWP – Donation Plugin and Fundraising Platform v4.16.9
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 2.30.0 All 255 releases
← All changes | src/Form/LegacyConsumer/ServiceProvider.php +4 -0 2.30.04.16.9 View file →
@@ -1,9 +1,11 @@
1 1 <?php
2 2
3 3 namespace Give\Form\LegacyConsumer;
4 4
5 +use Give\Form\LegacyConsumer\Actions\AddCustomFieldsToLegacyReceipt;
5 6 use Give\Form\LegacyConsumer\Commands\DeprecateOldTemplateHook;
7 +use Give\Helpers\Hooks;
6 8 use Give\Receipt\DonationReceipt;
7 9 use Give\ServiceProviders\ServiceProvider as ServiceProviderInterface;
8 10 use Give_Donate_Form;
9 11
@@ -96,6 +98,8 @@
96 98 function () {
97 99 give(TemplateHooks::class)->walk(new Commands\SetupFieldEmailTag);
98 100 }
99 101 );
102 +
103 + Hooks::addAction('give_new_receipt', AddCustomFieldsToLegacyReceipt::class);
100 104 }
101 105 }