Méthode |
Description |
|
__construct ( ) |
MC4WP_MailChimp constructor. |
|
empty_cache ( ) |
Empty the Lists cache |
|
fetch_lists ( ) : array |
|
|
get_cached_lists ( boolean $force = false ) : array |
Get MailChimp lists from cache. |
|
get_error_code ( ) : string |
|
|
get_error_message ( ) : string |
|
|
get_list ( integer $list_id ) : MC4WP_MailChimp_List |
Get a given MailChimp list |
|
get_lists ( ) : array |
Get MailChimp lists, from cache or remote API. |
|
get_subscriber_count ( array | string $list_ids ) : integer |
Returns number of subscribers on given lists. |
|
get_subscriber_counts ( ) : array |
Get an array of list_id => number of subscribers |
|
has_error ( ) : boolean |
|
|
list_has_subscriber ( string $list_id, string $email_address ) : boolean |
Checks if an email address is on a given list with status "subscribed" |
|
list_subscribe ( string $list_id, string $email_address, array $args = [], boolean $update_existing = false, boolean $replace_interests = true ) : object |
TODO: Force re-sending double opt-in email by deleting pending subscribers from list first. |
|
list_unsubscribe ( string $list_id, string $email_address ) : boolean |
|
|
reset_error ( ) |
Resets error properties. |
|