PHPackages                             inn/wordpress-mailchimp-tools - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. inn/wordpress-mailchimp-tools

ActiveLibrary

inn/wordpress-mailchimp-tools
=============================

Collection of tools for authoring MailChimp newsletters via the WordPress dashboard

4941[2 issues](https://github.com/INN/wordpress-mailchimp-tools/issues)PHP

Since May 24Pushed 6y ago6 watchersCompare

[ Source](https://github.com/INN/wordpress-mailchimp-tools)[ Packagist](https://packagist.org/packages/inn/wordpress-mailchimp-tools)[ RSS](/packages/inn-wordpress-mailchimp-tools/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

MailChimp Tools for WordPress
=============================

[](#mailchimp-tools-for-wordpress)

What is this?
-------------

[](#what-is-this)

This project aims to provide a simple set of tools for author MailChimp Campaigns via the WordPress post editor.

Right now, it provides:

- A settings panel to add/save your MailChimp API Key.
- A campaign editor meta box.
- A campaign preview meta box.
- A settings panel for setting campaign defaults on a per-post-type basis.

Getting started
---------------

[](#getting-started)

This tool set is *not* a plugin. You won't see it available in the WordPress dashboard for activation.

You *must* include the library in your plugin.

You can add the tools via [Composer](https://getcomposer.org/):

```
composer require inn/wordpress-mailchimp-tools:dev-master

```

### A simple example

[](#a-simple-example)

```
require_once __DIR__ . '/vendor/autoload.php';

function my_plugin_init() {
    register_post_type('newsletter', array(
        'label' => 'Newsletter',
        'labels' => array(
            'name' => 'Newsletters',
            'singular_name' => 'Newsletter'
        ),
        'show_ui' => true,
        'public' => true
    ));

}
add_action( 'init', 'my_plugin_init' );

```

Templates
---------

[](#templates)

The campaign editor relies on an `mc:edit="body"` [editable content area](http://kb.mailchimp.com/templates/code/create-editable-content-areas-with-mailchimps-template-language) specified in whatever template you use.

When creating or updating a campaign, the tools will add the WordPress post's body to the element of your template that has the `mc:edit="body"` attribute.

A `simple-one-column.html` with the `mc:edit="body"` placemarker is included in the `templates/` directory. You can copy the contents on `simple-one-column.html` and use MailChimp's template importer to add the template to your account.

[Read more about MailChimp's templates here](http://kb.mailchimp.com/templates/code/getting-started-with-mailchimps-template-language).

### Set default content for your post type

[](#set-default-content-for-your-post-type)

You can use the `default_content` filter to load boilerplate markup into the post editor for your custom post type:

```
function my_default_content($content) {
    $screen = $screen = get_current_screen();
    if ( $screen->post_type ==  'newsletter' ) {
        $default_content = file_get_contents( __DIR__ . '/templates/my-newsletter-default-markup.html' );
        return $default_content;
    }
    return $content;
}
add_filter( 'default_content', 'my_default_content' );

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/c580225682bff6c08f1326de4b8efd6cdd0dd891c0006702806a4f18c28a7823?d=identicon)[rnagle](/maintainers/rnagle)

---

Top Contributors

[![rnagle](https://avatars.githubusercontent.com/u/72608?v=4)](https://github.com/rnagle "rnagle (31 commits)")[![benlk](https://avatars.githubusercontent.com/u/1754187?v=4)](https://github.com/benlk "benlk (23 commits)")[![rclachance](https://avatars.githubusercontent.com/u/2522431?v=4)](https://github.com/rclachance "rclachance (13 commits)")[![aschweigert](https://avatars.githubusercontent.com/u/490703?v=4)](https://github.com/aschweigert "aschweigert (1 commits)")

### Embed Badge

![Health badge](/badges/inn-wordpress-mailchimp-tools/health.svg)

```
[![Health](https://phpackages.com/badges/inn-wordpress-mailchimp-tools/health.svg)](https://phpackages.com/packages/inn-wordpress-mailchimp-tools)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
