Mailchimp extends MC4WP_Integration
MC4WP plugin integration.
Table of Contents
- $name : string
- Integration name.
- add_checkbox() : array<string|int, mixed>
- Adds subscription checkbox.
- add_hooks() : mixed
- Adds integration hooks.
- get_ui_elements() : array<string|int, mixed>
- Gets UI elements.
- is_installed() : bool
- Checks if integration is enabled.
- subscribe_user() : mixed
- Subscribes user.
Properties
$name
Integration name.
public
string
$name
= 'HivePress'
Methods
add_checkbox()
Adds subscription checkbox.
public
add_checkbox(array<string|int, mixed> $form) : array<string|int, mixed>
Parameters
- $form : array<string|int, mixed>
-
Form arguments.
Return values
array<string|int, mixed> —add_hooks()
Adds integration hooks.
public
add_hooks() : mixed
Return values
mixed —get_ui_elements()
Gets UI elements.
public
get_ui_elements() : array<string|int, mixed>
Return values
array<string|int, mixed> —is_installed()
Checks if integration is enabled.
public
is_installed() : bool
Return values
bool —subscribe_user()
Subscribes user.
public
subscribe_user(int $user_id, array<string|int, mixed> $values) : mixed
Parameters
- $user_id : int
-
User ID.
- $values : array<string|int, mixed>
-
User values.