Mike Jolley
6f5de68a9f
initialize block types controller elsewhere
2024-04-10 11:42:50 +02:00
Brezo Cordero
cbff461b4d
Display upgrade page if no valid premium key
...
[MAILPOET-5905]
2024-03-25 12:36:08 +01:00
Brezo Cordero
724681d3a7
Display upgrade page for Tier 1
...
[MAILPOET-5905]
2024-03-25 12:36:08 +01:00
Mike Jolley
435f638011
Apply rules on lib dir
2024-03-21 16:57:59 +01:00
Jan Jakes
3972a4d7e7
Remove automations beta badge
...
[MAILPOET-5936]
2024-03-14 11:09:12 +01:00
Rostislav Wolny
2012621791
Improve code comment when adding block editor class
...
[MAILPOET-5854]
2024-01-29 10:52:41 +01:00
Rostislav Wolny
cc8bb10d8b
Add proper body class for the email editor to mark it a block editor
...
This class is needed so that some CSS rules (e.g. white background, hidden footer)
are applied for WP admin.
[MAILPOET-5854]
2024-01-29 10:52:41 +01:00
Rostislav Wolny
414e540f33
Remove unnecessary code for highlighting MailPoet > Email menu
...
The code was needed when we used the post editor. After we switched to
the custom editor we don't need it any more.
[MAILPOET-5854]
2024-01-29 10:52:41 +01:00
Jan Lysý
38fcb7394d
Move hook adding MailPoet image size to NewsletterEditor admin page
...
[MAILPOET-5749]
2024-01-22 17:32:41 +01:00
Rostislav Wolny
b35e0af691
Remove old code that was handling creating emails for the new editor
...
The code is no longer needed because the new emails are created via API.
[MAILPOET-5810]
2024-01-14 19:43:26 +05:00
Jan Jakes
ef8d7bf264
Remove automation hiding logic
...
This was introduced in:
https://github.com/mailpoet/mailpoet/pull/4917
https://github.com/mailpoet/mailpoet/pull/5171
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Rostislav Wolny
c9c7146ef1
Improve table prefixing to allow Doctrine entities for WP tables
...
WordPress tables use only the DB prefix, but MailPoet tables use
DB prefix + plugin prefix (mailpoet).
This commit changes TablePrefixMetadataFactory to be able to distiguish
WP table for posts and adds proper prefix.
[MAILPOET-5646]
2024-01-08 12:04:06 +05:00
Oluwaseun Olorunsola
074674a498
Properly format response from API
...
MAILPOET-5803
2023-12-19 13:27:21 +01:00
Jan Lysý
525c80bac4
Fix PHPStan warnings in lib
...
[MAILPOET-5751]
2023-12-13 11:48:14 +01:00
Oluwaseun Olorunsola
fb257f7c01
Refactor the registering of Marketing channel to DI class
...
MAILPOET-5695
2023-11-27 10:25:09 +01:00
Jan Jakes
24dfd5c4c7
Fix deprecation error for pages hidden in menu
...
[MAILPOET-5718]
2023-11-23 10:50:33 +01:00
Oluwaseun Olorunsola
cca8f9fe31
Hide MailPoet Marketing MultiChannel behind feature flag
...
MAILPOET-5692
2023-11-23 10:40:43 +01:00
Oluwaseun Olorunsola
783fbd6c5c
Add MailPoet icon-white and use in MP Marketing Channel
...
MAILPOET-5692
2023-11-23 10:40:43 +01:00
Oluwaseun Olorunsola
90b9fd989b
Add MailPoet Marketing Channel support
...
MAILPOET-5692
2023-11-23 10:40:43 +01:00
Pavel Dohnal
b60da9faf6
Make sure offset is always number
...
We want to prevent an error 'Unsupported operand types: string * int'
[MAILPOET-5676]
2023-10-24 16:12:24 +02:00
John Oleksowicz
23806b6395
Schedule initial mixpanel task
...
MAILPOET-5161
2023-10-23 17:40:54 +02:00
David Remer
42113cbaed
Declare cart_checkout_blocks compatibility
...
[MAILPOET-5659]
2023-10-19 11:26:04 +02:00
Rostislav Wolny
4b2e5e8eae
Hotfix redirect when creating new email
...
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
debbeaafdc
Add EmailEditor page into MailPoet admin
...
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
1bc331760e
Add also catching of other exceptions when running migrations
...
[MAILPOET-5627]
2023-10-09 12:24:15 +02:00
Rostislav Wolny
7d96cada42
Catch activation in progress exception when it runs on version check
...
[MAILPOET-5627]
2023-10-09 12:24:15 +02:00
Rostislav Wolny
af32b36af2
Initialize editor hooks only if the new editor feature is active
...
[MAILPOET-5624]
2023-10-09 11:33:11 +02:00
Jan Jakes
2a676353aa
Render "after_javascript" block after other scripts
...
[MAILPOET-5118]
2023-10-04 15:05:38 +02:00
Rostislav Wolny
125d5e9d1f
Fix Redirect to the landing page after activation
...
When the plugin was not activated on the WP plugins page (e.g., via WC NUX)
we forgot to clean the activation flag. That caused us to redirect
to the landing page on a subsequent plugin activation, even if the user activated
a different plugin.
This commit fixes the issue by making sure the PLUGIN_ACTIVATED flag is unset even when plugin
is not activated from WP plugins page.
[MAILPOET-5221]
2023-09-27 18:58:04 +02:00
Brezo Cordero
c12438db08
Add filter to remove restriction on Woo Express
...
[MAILPOET-5573]
2023-09-25 07:02:19 -07:00
Rostislav Wolny
bd539e386b
Add initialization for core blocks renderers
...
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
b70ad064c7
Refactor initialization of the email editor
...
This changes how the editor is initialized. The integration initialization class
doesn't get the engine class anymore, but integration is initialized via
mailpoet_email_editor_initialized action triggered from the engine.
This allows multiple integrations to hook into the engine.
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
John Oleksowicz
0e770ed649
Use CarbonImmutable instead of Carbon
...
MAILPOET-5574
2023-09-11 13:49:57 +02:00
John Oleksowicz
000cb5e6d5
Add limit to mailpoet_archive shortcode
...
MAILPOET-5574
2023-09-11 13:49:57 +02:00
John Oleksowicz
aa480a8c66
Add ability to display last n days of newsletters
...
MAILPOET-5574
2023-09-11 13:49:57 +02:00
John Oleksowicz
ec71b44648
Add ability to filter mailpoet_archive by subject
...
MAILPOET-5574
2023-09-11 13:49:57 +02:00
John Oleksowicz
a0c1a137d6
Update mailpoet_archive to accept date params
...
MAILPOET-5574
2023-09-11 13:49:57 +02:00
David Remer
c487576e18
Track refunds
...
[MAILPOET-5485]
2023-09-11 12:14:33 +02:00
David Remer
73f669a656
Listen to all status changes
...
This commit listens to all status changes but does not
alter the business logic as of yet.
[MAILPOET-5485]
2023-09-11 12:14:33 +02:00
David Remer
30eafb9146
Extract purchase states to helper method
...
[MAILPOET-5485]
2023-09-11 12:14:33 +02:00
Brezo Cordero
3104b61005
Remove data-beacon-article
...
[MAILPOET-5551]
2023-09-07 14:50:35 +02:00
Rodrigo Primo
f43486971d
Rename maybeDbUpdate() to maybeRunActivator()
...
Changing the name as this method might change other things besides just
the database.
[MAILPOET-5564]
2023-09-07 11:02:05 +02:00
Rodrigo Primo
1f05bfb238
Move maybeDbUpdate() to its own action to run it earlier
...
Before this commit, maybeDbUpdate() was called inside Initializer::initialize(). This method is called using the WP `init` hook with a priority of `10`. To avoid running into situations where MailPoet code is executed before database changes are applied, we need to run maybeDbUpdate() as early as possible. To achieve this, this commit moves maybeDbUpdate() to its own action still using the `init` hook but with a priority of PHP_MIN_INT.
For more information of the potential problems of running the database changes too late check this example: pcNwfB-2V6-p2.
[MAILPOET-5564]
2023-09-07 11:02:05 +02:00
John Oleksowicz
77aef00652
Use constant instead of hardcoding option value
...
MAILPOET-5509
2023-08-31 14:16:10 +02:00
John Oleksowicz
5b39092cb6
Add newsletter option for filter segment id
...
MAILPOET-5509
2023-08-31 14:16:10 +02:00
Rostislav Wolny
68e833f80c
Refactor email editor PHP and JS code to follow automations namespacing
...
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
5abc308f40
Highlight correct submenu item when editing email
...
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
c7f1ecfb5e
Add EmailEditor class with basic registration of CPT for emails
...
The idea is that there is a core class
Mailpoet\MailPoet\EmailEditor\Core\EmailEditor which will contain common email editor related stuff
that can be used and shared between projects.
Mailpoet\MailPoet\EmailEditor\Integration\EmailEditor which contains MailPoet specific settings and and extra modifications
specific for MailPoet.
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
cea9927779
Remove HS twig extension
...
[MAILPOET-5529]
2023-08-14 16:45:11 +02:00
Brezo Cordero
ee882b99e9
Use admin_email as default sender.
...
[MAILPOET-5498]
2023-08-07 13:22:53 +02:00