Commit Graph

18 Commits

Author SHA1 Message Date
51a14a45d3 Use refreshAll() for updates, refresh subscribers/subscriber custom fields conditionally
[MAILPOET-5752]
2024-02-12 15:33:28 +01:00
014b8249bb Replace entityManager->clear with a helper, add cleanup to WP user sync
[MAILPOET-5752]
2024-02-12 15:33:28 +01:00
6f98634b94 Replace Subscriber and SubscriberSegment models with Doctrine in \MailPoet\Segments\WP
[MAILPOET-5752]
2024-02-12 15:33:28 +01:00
374fbe6867 Replace Segment model with Doctrine in \MailPoet\Segments\WP
[MAILPOET-5752]
2024-02-12 15:33:28 +01:00
8e6fdddeda Stop marking subscribers as unsubscribed if checkbox is not checked
Before we wanted to makr subscribers as unsubscribed when creating a
subscriber linked to a new WP users if the optin checkbox was not
checked. We are changing this behavior and no action should be taken
when creating a new subscriber with the optin checkbox unchecked. So
this commit removes code that is not necessary anymore from
\MailPoet\Segments\WP::createOrUpdateSubscriber().

[MAILPOET-4178]
2023-05-30 13:25:24 +02:00
de18016d7d Replace calls to ModelValidator::validateEmail()
We want to remove/refactor the whole ModelValidator class as part of the
Doctrine refactor.

This commit replaces all the calls to ModelValidator::validateEmail()
with calls to Validator::validatesEmail().

[MAILPOET-4343]
2023-05-17 12:37:22 +02:00
926620e8f8 Ignore strict types rule in all existing files that don't have it
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
5c6f32488a Remove old hook
[MAILPOET-4773]
2022-11-07 04:41:47 -06:00
9554727370 Fire mailpoet_segment_subscribed when user registers and is subscribed
When no confirmation mail gets send, the user is subscribed immediately. In this case
we need to fire the mailpoet_segment_subscribed action, so the trigger can listen to this
event.

[MAILPOET-4773]
2022-11-07 04:41:47 -06:00
43922a7c27 Notify about subscriber changes in WP and Woo synchronizations
[MAILPOET-4727]
2022-10-27 09:31:40 +02:00
12c0605f92 Fix variable name typo
[MAILPOET-4727]
2022-10-27 09:31:40 +02:00
24cca1ba04 Cache total subscribers count, add tests
[MAILPOET-4416]
2022-08-24 12:18:44 +02:00
c436f18e8e Decode html entities of WP_User data
[MAILPOET-4241]
2022-06-20 08:43:51 +02:00
2fe95320e2 Add MailPoet Premium integration for automation
[PREMIUM-180]
2022-06-09 13:30:54 +02:00
f6dfb19362 Remove PHPStan level 6 errors from Segments\WP
Remove the following errors:
(Method|Property|Function) has no (return )?type specified.
(Method|Function) has parameter with no type (specified).
array_walk on import.php was expecting the key as the second parameter to the function. I have switched it to array_map.

[MAILPOET-3720]
2022-05-23 12:04:12 +02:00
7b33a94d37 Add set_user_role hook
[MAILPOET-2834]
2022-05-12 11:41:57 +02:00
9bd6f29870 Add add_user_role hook to synchronizeUser
[MAILPOET-2834]
2022-05-12 11:41:57 +02:00
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00