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/Tracking/Events/EditedDonationFormsTracking.php +10 -0 2.30.04.16.9 View file →
@@ -1,8 +1,9 @@
1 1 <?php
2 2
3 3 namespace Give\Tracking\Events;
4 4
5 +use Give\DonationForms\Models\DonationForm;
5 6 use Give\Tracking\Contracts\TrackEvent;
6 7 use Give\Tracking\Enum\EventType;
7 8 use Give\Tracking\Repositories\TrackEvents;
8 9 use Give\Tracking\TrackingData\EditedDonationFormsData;
@@ -51,7 +52,16 @@
51 52 */
52 53 public function savePostHookHandler($formId)
53 54 {
54 55 $this->trackEvents->saveRecentlyEditedDonationForm($formId);
56 + $this->record();
57 + }
58 +
59 + /**
60 + * @since 3.0.0
61 + */
62 + public function formBuilderUpdatedHookHandler(DonationForm $form)
63 + {
64 + $this->trackEvents->saveRecentlyEditedDonationForm($form->id);
55 65 $this->record();
56 66 }
57 67 }