项目作者: bdbch

项目描述 :
Mailchimp Feature for FlyntWP (https://flyntwp.com)
高级语言: PHP
项目地址: git://github.com/bdbch/flynt-feature-mailchimp.git
创建时间: 2018-11-24T06:30:25Z
项目社区:https://github.com/bdbch/flynt-feature-mailchimp

开源协议:

下载


Mailchimp Feature

This is a mailchimp integration for the Wordpress development framework “Flynt”

Installation

  1. Make sure to install the required composer packages
  1. composer require drewm/mailchimp-api bdbch/vivalidator
  1. Clone or download this folder into your Flynt themes feature folder. For example:
  1. /path/to/your/flynt-project/web/app/themes/your-theme/Features/Mailchimp
  1. Add the following line to your projects Init.php in theme/lib:
  1. add_theme_support('flynt-mailchimp');
  1. Add the Mailchimp API Key in the Feature option page

Now you’re ready to use the Mailchimp Feature in your project

Usage

  1. <?php
  2. use Flynt\Features\Mailchimp\Instance;
  3. function subscribeUserToNL($listId, $email)
  4. {
  5. $MailchimpInstance = new Instance();
  6. $result = $MailchimpInstance->subscribeToList($listId, $email, 'pending');
  7. }