Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/barryceelen/wp-simplechimp/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Basic MailChimp subscription form for WordPress.
The plugin has no settings page. To specify your Mailchimp API key and list id, add a filter to 'simplechimp_options', eg. via the SimpleChimp Options plugin.
// Filter simplechimp options.
add_filter( 'simplechimp_options', 'myprefix_filter_simplechimp_options' );
/**
* Filter simplechimp options.
*
* @param array $options Options for the Simplechimp plugin.
* @return array Filtered options.
*/
function myprefix_filter_simplechimp_options( $options ) {
$options['list_id'] = 'yourlistid';
$options['api_key'] = 'yourapikey';
return $options;
}
Display the subscription form
SimpleChimp adds an action hook which displays the subscription form.
Note: No styles are added, you are on your own.
<?php do_action( 'simplechimp' ); ?>