Skip to content

Commit

Permalink
Merge pull request #40 from alleyinteractive/feature/issue-16/create-…
Browse files Browse the repository at this point in the history
…omeda-email-adapter

Issue-16: Bug Fixes and dependency updates
  • Loading branch information
attackant authored Nov 20, 2023
2 parents 674b115 + b8ed77b commit 765a62b
Show file tree
Hide file tree
Showing 17 changed files with 10,999 additions and 26,251 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to `Newsletter Builder` will be documented in this file.

## 0.3.5 - 2023-11-20

- Update dependencies, minor bugfixes

## 0.3.4 - 2023-11-13

- Allow editing of post block attributes with no block selected. Allow order attribute to be edited.
Expand Down
29 changes: 26 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Tags: alleyinteractive, wp-newsletter-builder

Stable tag: 0.1.0

Requires at least: 5.9
Requires at least: 6.2

Tested up to: 6.1
Tested up to: 6.4.1

Requires PHP: 8.0

Expand All @@ -35,6 +35,29 @@ Activate the plugin in WordPress and use it like so:
$plugin = WP_Newsletter_Builder\WP_Newsletter_Builder\WP_Newsletter_Builder();
$plugin->perform_magic();
```
### Enabling an Email Provider

The plugin supports multiple email providers. To enable an email provider, add the following code as a plugin or function in your theme `wp-newsletter-builder-PROVIDER.php`:

This decision was made so that only developers can switch email providers (but it may be that we want to create a settings page for this in the future.)

```php
<?php
/**
* Plugin Name: PROVIDER for WP Newsletter Builder
* Description: Plugin to enable PROVIDER as an email provider for WP Newsletter Builder.
* Version: 0.1.0
* Author: Alley
*
* Text Domain: newsletter-testing
* Domain Path: /languages/
*
* @package newsletter-testing
*/
add_filter( 'wp_newsletter_builder_selected_provider',
fn( $provider ) => 'WP_Newsletter_Builder\Email_Providers\PROVIDER'
);
```

## Testing

Expand Down Expand Up @@ -99,4 +122,4 @@ with us](https://alley.co/careers/).

## License

The GNU General Public License (GPL) license. Please see [License File](LICENSE) for more information.
The GNU General Public License (GPL) license. Please see [License File](LICENSE) for more information.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
],
"require": {
"php": "^7.4||^8.0",
"php": "^8.0",
"alleyinteractive/composer-wordpress-autoloader": "^1.0",
"campaignmonitor/createsend-php": "^7.0"
},
Expand Down
Loading

0 comments on commit 765a62b

Please sign in to comment.