safety-net icon indicating copy to clipboard operation
safety-net copied to clipboard

Scrape Mailpoet data

Open mlaetitia opened this issue 7 months ago • 1 comments

Mailpoet data is coming over to staging sites - which means that if we accidentaly (or for testing purposes) change things on settings, etc..., it will propagate (settings like: 2 step subscription confirmation, etc..).

Ideally, in staging, we'd use our own accounts, but we'd keep the forms. Not sure if that's at all possible.

mailpoet data is stored in their own tables (not on options)

mlaetitia avatar Apr 23 '25 17:04 mlaetitia

The MailPoet team shared the code that does this internally :

https://github.com/mailpoet/mailpoet/blob/c531c5144f0c028944383adbf18c3b37cd6634d0/mailpoet/lib/API/JSON/v1/Setup.php#L35-L47

This code is called from in MailPoet > Settings > Advanced, there is Reinstall from scratch option - which is the way to do this data scrapping manually.

If at all possible, it would be good to retain forms , but i feel that might get overriden when we setup a new mailpoet account on the site... This should definitely get tested to check though

mlaetitia avatar Apr 24 '25 11:04 mlaetitia