-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: move MJML creds to plugin settings
Closes #16.
- Loading branch information
Showing
3 changed files
with
55 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
# newspack-newsletters | ||
Author email newsletters in WordPress | ||
|
||
## Setup | ||
|
||
Copy your Mailchimp API key, which can be found in Mailchimp in `Account->Extras->API Keys`. | ||
Request [MJML API access](https://mjml.io/api). | ||
|
||
Navigate to `Settings->Newspack Newsletters`. Input Mailchimp API key and MJML API key and secret. | ||
|
||
## Use | ||
|
||
Copy your Mailchimp API key, which can be found in Mailchimp in `Account->Extras->API Keys`. Navigate to `Settings->Newspack Newsletters`. Input Mailchimp API key. Click Newsletters in the left menu. Create a new one. | ||
Click Newsletters in the left menu. Create a new one. | ||
|
||
## Development | ||
|
||
Run `composer update && npm install`. | ||
|
||
Run `npm run build`. | ||
|
||
#### Environment variables | ||
|
||
This feature requires environment variables to be set (e.g. in `wp-config.php`): | ||
|
||
```php | ||
define( 'NEWSPACK_MJML_API_KEY', 'abc1' ); | ||
define( 'NEWSPACK_MJML_API_SECRET', 'abc1' ); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters