Property | Type | Description | |
---|---|---|---|
$mailchimp | MC4WP_MailChimp | ||
$messages | MC4WP_Admin_Messages |
Method | Description | |
---|---|---|
__construct ( MC4WP_Admin_Messages $messages, MC4WP_MailChimp $mailchimp ) | ||
add_hooks ( ) | Add hooks | |
add_menu_item ( $items ) : mixed | ||
enqueue_assets ( string $suffix, string $page = '' ) | ||
prepare_form_preview ( ) | Prepares a Form Preview | |
process_add_form ( ) | Act on the "add form" form | |
process_save_form ( ) | Saves a form | |
redirect_to_form_action ( ) | Redirect to correct form action | |
register_shortcake_ui ( ) | Registers UI for when shortcake is activated | |
sanitize_form_data ( array $data ) : array | ||
save_form ( array $data ) : integer | Saves a form to the database | |
show_add_page ( ) | Shows the "Add Form" page | |
show_edit_page ( ) | Show the "Edit Form" page | |
show_forms_page ( ) | Show the Forms Settings page | |
tab_url ( $tab ) : string | Get URL for a tab on the current page. | |
update_form_stylesheets ( ) | Goes through each form and aggregates array of stylesheet slugs to load. |
Method | Description | |
---|---|---|
set_default_form_id ( integer $form_id ) |
public __construct ( MC4WP_Admin_Messages $messages, MC4WP_MailChimp $mailchimp ) | ||
$messages | MC4WP_Admin_Messages | |
$mailchimp | MC4WP_MailChimp |
public enqueue_assets ( string $suffix, string $page = '' ) | ||
$suffix | string | |
$page | string |
public redirect_to_form_action ( ) |
public register_shortcake_ui ( ) |
public sanitize_form_data ( array $data ) : array | ||
$data | array | |
return | array |
public update_form_stylesheets ( ) |