Rodrigo Primo
dd1fcd5100
Add helper method to get the name of the WooCommerce order addresses table
...
[MAILPOET-4711]
2022-10-19 11:32:41 +02:00
Rodrigo Primo
f734091e34
Replace PHP's builtin exception with Mailpoet's RuntimeException
...
Use a more specific exception.
[MAILPOET-4577]
2022-10-05 10:47:06 +02:00
Rodrigo Primo
ff105f8e61
Add helper method to get the name of the WooCommerce orders table
...
[MAILPOET-4577]
2022-10-05 10:47:06 +02:00
Rodrigo Primo
b592ce743d
Use Woo native function instead of custom query in getOrdersCountCreatedBefore()
...
[MAILPOET-4570]
2022-10-03 15:10:36 +02:00
Rodrigo Primo
6e399a5842
Replace getSubscribedSegments() with a new getSubscriberSegments() parameter
...
After the PR review, we decided to add a new $status parameter to
getSubscriberSegments() instead of creating getSubscribedSegments().
[MAILPOET-4365]
2022-09-19 13:35:39 +02:00
Rodrigo Primo
f21c47528e
Use findBy() instead of getReference() to get segment entities
...
Initially, I had opted to use getReference() to avoid querying the
database to get the segment entities as all we need is the segment ID.
But I hadn't realized that this could cause problems if a segment that
is saved in the settings in the option woocommerce.segments is deleted.
Using findBy() here protects against this problem as, if the segment
doesn't exist anymore, it won't be returned.
[MAILPOET-4365]
2022-09-19 13:35:39 +02:00
Rodrigo Primo
5610295e7a
Replace SubscriberSegment model with Doctrine code in Subscription
...
[MAILPOET-4365]
2022-09-19 13:35:39 +02:00
Rodrigo Primo
a428e16a09
Replace remaining uses of the Segment model with Doctrine in Subscription
...
[MAILPOET-4365]
2022-09-19 13:35:39 +02:00
Rodrigo Primo
d73e217eb1
Replace Paris models with Doctrine entities in Subscription::subscribeOnCheckout()
...
Besides Subscription::subscribeOnCheckout(), this commit also replaces
Paris models with Doctrine entities in all the methods that are called
by Subscription::subscribeOnCheckout().
[MAILPOET-4365]
2022-09-19 13:35:39 +02:00
Rodrigo Primo
24f55fdebc
Use SubscriberEntity instead of the Subscriber model to get statuses
...
[MAILPOET-4365]
2022-09-19 13:35:39 +02:00
Rodrigo Primo
b225c22217
Replace Paris models with Doctrine entities in WooCommerceBlocksIntegration
...
[MAILPOET-4365]
2022-09-19 13:35:39 +02:00
Rodrigo Primo
842f81d40b
Add method to detected if WooCommerce Custom Order Tables is enabled
...
[MAILPOET-4567]
2022-09-09 10:43:11 +02:00
John Oleksowicz
90dcbc2749
Add create order to WC helper
...
MAILPOET-4566
2022-09-08 13:02:52 +02:00
Jan Jakes
c601aaa3eb
Autofix issues detected by CodeSniffer
...
[MAILPOET-4617]
2022-09-06 17:38:01 +02:00
David Remer
b05e6d414c
Remove WP\Functions::__ and other translate functions
...
Under the new sniffer rules, those functions produce errors and, when those methods
are used, the sniffer can not properly be applied.
[MAILPOET-4524]
2022-08-09 13:23:16 +02:00
Rodrigo Primo
de4e76b65d
Use is_array() instead of !empty() for a safer check
...
Just in case the option is changed and is not an array anymore.
[MAILPOET-4491]
2022-08-04 10:18:44 +02:00
Rodrigo Primo
13e06fe0cb
Add helper method to check if MailPoet was installed via WooCommerce
...
The method will return true if MailPoet was installed via the
WooCommerce onboarding wizard and false otherwise.
[MAILPOET-4491]
2022-08-04 10:18:44 +02:00
Sam Najian
b84d1d1af8
Update TransactionalEmailHooks to work with NewsletterEntity
...
[MAILPOET-4360]
2022-07-14 13:13:47 +02:00
Sam Najian
930024101f
Exchange Transactional renderer to NewsletterEntity
...
[MAILPOET-4360]
2022-07-14 13:13:47 +02:00
David Remer
ac2646ce11
Fix str_replace to avoid broken HTML
...
[MAILPOET-4233]
2022-04-07 10:58:39 +02:00
David Remer
3320afe8f5
Remove wp_kses from templates
...
This commit removes two escaped outputs to keep backwards compatibility.
[MAILPOET-4219]
2022-04-04 17:12:33 +02:00
David Remer
53fc49d1eb
Simplify phpcs:disable comments
...
Additionally this commit contains a conversion from %d to %s in a query
[MAILPOET-4219]
2022-04-04 17:12:33 +02:00
David Remer
9f39843189
Sanitize incoming data according to WP sniffer
...
[MAILPOET-4219]
2022-04-04 17:12:33 +02:00
David Remer
bde6c1ce65
Escape output according to sniffs
...
[MAILPOET-4219]
2022-04-04 17:12:33 +02:00
Sam Najian
a2ab1a3cfd
Escape queries before passing to $wpdb methods
...
[MAILPOET-4219]
2022-04-04 17:12:33 +02:00
David Remer
a8d88beec9
Escape output according to WP sniffs
...
[MAILPOET-4129]
2022-04-04 17:12:33 +02:00
Jan Jakes
9f790efbf0
Move plugin files to a subfolder
...
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00