Commit Graph

332 Commits

Author SHA1 Message Date
Brezo Cordero
6b40dfabf3 Hide Automations menu for bundles
Using null instead of true so that the pages are available directly.

[MAILPOET-5223]
2023-05-22 11:52:23 +02:00
Brezo Cordero
c5bc51fc86 Add function to check if MP subscription is bundled
[MAILPOET-5223]
2023-05-22 11:52:23 +02:00
Brezo Cordero
00e5dea5b4 Opt out AutomateWoo customer
This commit adds an action to opt out AutomateWoo customer When MailPoet Subscriber global status changes to unsubscribed.

[MAILPOET-4230]
2023-05-15 12:04:24 +02:00
Brezo Cordero
bf4a2ac287 Add subscriber status changed hook
This PR adds a new hook and notification when the subscriber status changes. It will be used by AutomateWoo integration.

[MAILPOET-4230]
2023-05-15 12:04:24 +02:00
David Remer
06a704da75 Use Populator to add group and event to available options
[MAILPOET-4934]
2023-05-15 08:19:19 +02:00
Brezo Cordero
bcee2abb2c Improve translations error handling
Use wp_json_encode in case files contain invalid UTF-8 characters and catch WP_Errors when fetching the translations.

[MAILPOET-5253]
2023-05-03 12:46:07 +02:00
Rodrigo Primo
7c4a84aaf4 Remove notices for hooks that were deprecated over six months ago
[MAILPOET-5272]
2023-04-28 06:05:29 +01:00
Jan Lysý
fb2c839fad Remove version from image url in templates
[MAILPOET-5217]
2023-04-26 11:52:16 +02:00
Rostislav Wolny
cbd5c443f2 Ensure that subscriber stats are sent even for valid underprivileged keys
[MAILPOET-5165]
2023-04-04 18:45:41 +02:00
Brezo Cordero
fc8837e03c Filter for license provisioning
This commit adds a filter that will provision the API key. It only runs on WP.com sites with plugins.

[MAILPOET-5131]
2023-04-03 12:57:31 +02:00
David Remer
e140dc6d4e Add WooCommerce integration and order status trigger backend
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
Sam Najian
ef3c64b85d Adjust use Html2Text from MailPoetVendor namespace
[MAILPOET-5128]
2023-03-15 15:02:32 -03:00
Rostislav Wolny
d81571dd47 Update CSS selector for automations menu link beta flag
[MAILPOET-4831]
2023-03-13 14:09:17 +01:00
Rostislav Wolny
d832925107 Remove temporary static property for the plugin main page
The property was added so that we were able to set the main page
dynamically based on the feature switch value. This is no longer needed and
we can use the hardcoded constant as we did before.
[MAILPOET-4831]
2023-03-13 14:09:17 +01:00
Rostislav Wolny
0f01755e18 Remove homepage feature switch
[MAILPOET-4831]
2023-03-13 14:09:17 +01:00
Jan Lysý
212e01dd4c Add check that function error_log exists
[MAILPOET-5026]
2023-03-02 13:59:51 +01:00
Oluwaseun Olorunsola
64137aebb3 Update coupon fields, add new defaults
MAILPOET-4764
2023-02-23 16:59:15 +01:00
Oluwaseun Olorunsola
9578e4c11e Add Coupon block to Wine City Newsletter template
MAILPOET-4764
2023-02-23 16:59:15 +01:00
Oluwaseun Olorunsola
62e90c3e19 Add Coupon block to Abandoned Cart – Fitness Newsletter template
MAILPOET-4764
2023-02-23 16:59:15 +01:00
Oluwaseun Olorunsola
f01429fe52 Add Coupon block to Avocado Newsletter template
MAILPOET-4764
2023-02-23 16:59:15 +01:00
Oluwaseun Olorunsola
14046affd7 Add Coupon block to Book store Newsletter template
MAILPOET-4764
2023-02-23 16:59:15 +01:00
Oluwaseun Olorunsola
526e631f6e Add Coupon block to Flowers Newsletter template
MAILPOET-4764
2023-02-23 16:59:15 +01:00
Jan Lysý
456b99fa02 Use React for coupon source switch
[MAILPOET-4890]
2023-02-22 13:07:40 +01:00
Oluwaseun Olorunsola
7daa0c9dff Prevent redirecting on Experimental Page
MAILPOET-4972
2023-02-20 11:10:46 +01:00
Oluwaseun Olorunsola
956d693454 Skip redirecting to MailPoet landing page when activated from WooCommerce setup wizard
MAILPOET-5058
2023-02-13 16:23:59 +01:00
Oluwaseun Olorunsola
d061d451a4 Remove Export from Main menu options
MAILPOET-5045
2023-02-13 11:58:58 +01:00
David Remer
9b2e6208e0 Allow editors to manage automations
[MAILPOET-5024]
2023-02-06 14:06:06 +01:00
Rostislav Wolny
adc158367d Add wait and retry when translations API returns 429
[MAILPOET-4979]
2023-02-06 12:27:39 +01:00
Rostislav Wolny
69e67f3c7a Do not cache language packs response when code is not 200
[MAILPOET-4979]
2023-02-06 12:27:39 +01:00
Rostislav Wolny
4f831f8b17 Refactor API call for fetching language packs data to private method
[MAILPOET-4979]
2023-02-06 12:27:39 +01:00
Rostislav Wolny
36c95f80fd Add transient caching of language packs data
[MAILPOET-4979]
2023-02-06 12:27:39 +01:00
Oluwaseun Olorunsola
10ea5ec55b Remove extra sending method check for new users.
mta.method is probably not set yet.

MAILPOET-4929
2023-02-06 12:11:12 +01:00
Oluwaseun Olorunsola
74549665d6 Stop checking for DisabledMailFunction when the plugin is repeatedly activated and updated.
We will only perform the check when the plugin is first activated and sending method is changed.

MAILPOET-4929
2023-02-06 12:11:12 +01:00
Rodrigo Primo
1161e6f3f6 Add MailPoet task to WooCommerce homepage
[MAILPOET-4814]
2023-01-30 15:01:42 +01:00
 Ján Mikláš
60d933b39a Fix capitalization of MSS
[MAILPOET-5030]
2023-01-30 14:25:41 +01:00
Jan Lysý
40f4216ff8 Add method for getting WC coupons
[MAILPOET-4761]
2023-01-30 09:36:21 +01:00
Rostislav Wolny
f66be1b947 Improve typehints and doctypes for the woo revenue tracking
[MAILPOET-5014]
2023-01-30 09:21:39 +01:00
Rostislav Wolny
5d3b26bb58 Remove unnecessary tracking enabled check
Registering the hook doesn't cost us much and it makes sense to register
it even when the tracking is disabled so that the data are always loaded
when calling: wp wc tracker snapshot --format=yaml
[MAILPOET-5014]
2023-01-30 09:21:39 +01:00
Rostislav Wolny
17d3f66316 Register filter for tracking revenue data
[MAILPOET-5014]
2023-01-30 09:21:39 +01:00
David Remer
139fb2f1ad Hide Automations and Upgrade in landingpage
[MAILPOET-5019]
2023-01-25 13:42:43 +01:00
David Remer
5e7ece1e87 Add mailpoet-landingpage to avoid redirection
[MAILPOET-5019]
2023-01-25 13:42:43 +01:00
David Remer
47a4e3b4e9 Hide menu entries when not setup yet
[MAILPOET-5019]
2023-01-25 13:42:43 +01:00
Oluwaseun Olorunsola
62325dc096 Fix multiple forms display on pages with Woocommerce [products] shortcode
MAILPOET-4885
2023-01-25 13:15:08 +01:00
Jan Lysý
5885bd7f84 Add deactivation poll initialization
[MAILPOET-4686]
2023-01-23 17:01:13 +01:00
Jan Lysý
f1d8ba51df Add deactivation poll config wrapper
[MAILPOET-4686]
2023-01-23 17:01:13 +01:00
Oluwaseun Olorunsola
4be7f37bbc Remove the feature flag from Landing page
MAILPOET-4803
2023-01-23 15:13:38 +01:00
Rostislav Wolny
a53e446583 Add request cache to TranslationUpdater
WP may call the action we hook into more times during one request.
This commit adds simple caching to prevent multiple requests.
[MAILPOET-4909]
2023-01-12 14:08:31 +01:00
Rostislav Wolny
b033d7d92f Add error logging when fetching language packs info
[MAILPOET-4909]
2023-01-12 14:08:31 +01:00
Oluwaseun Olorunsola
47d3472fef Fix acceptance tests error and add acceptance test for landing page
MAILPOET-4795
2023-01-06 18:29:46 +01:00
Oluwaseun Olorunsola
05c5b46089 Redirect to landingpage when welcome wizard is not filled
MAILPOET-4795
2023-01-06 18:29:46 +01:00