Add WooCommerce checkout opt-in functionality [MAILPOET-1483]

This commit is contained in:
wxa
2019-03-28 17:45:27 +03:00
committed by M. Shull
parent 00c9e682ed
commit 12d2b9b46a
6 changed files with 149 additions and 1 deletions

View File

@ -12,6 +12,7 @@ class Source {
const API = 'api';
const WORDPRESS_USER = 'wordpress_user';
const WOOCOMMERCE_USER = 'woocommerce_user';
const WOOCOMMERCE_CHECKOUT = 'woocommerce_checkout';
const UNKNOWN = 'unknown';
private static $allowed_sources = array(
@ -21,6 +22,7 @@ class Source {
Source::API,
Source::WORDPRESS_USER,
Source::WOOCOMMERCE_USER,
Source::WOOCOMMERCE_CHECKOUT,
Source::UNKNOWN,
);