| @@ -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 | } |