Property | Type | Description | |
---|---|---|---|
$ads | MC4WP_Admin_Ads | ||
$mailchimp | MC4WP_MailChimp | ||
$messages | MC4WP_Admin_Messages | ||
$plugin_file | The relative path to the main plugin file from the plugins dir | ||
$tools | MC4WP_Admin_Tools |
Method | Description | |
---|---|---|
__construct ( MC4WP_Admin_Tools $tools, MC4WP_Admin_Messages $messages, MC4WP_MailChimp $mailchimp ) | Constructor | |
add_hooks ( ) | Registers all hooks | |
add_menu_item ( array $item ) | ||
build_menu ( ) | Register the setting pages and their menu items | |
customize_admin_texts ( ) | Customize texts throughout WP Admin | |
dismiss_api_key_notice ( ) | Dismisses the API key notice for 1 week | |
empty_debug_log ( ) | Empties the log file | |
enqueue_assets ( ) : boolean | Load scripts and stylesheet on MailChimp for WP Admin pages | |
initialize ( ) | Initializes various stuff used in WP Admin | |
listen_for_actions ( ) | Listen for _mc4wp_action requests | |
register_dashboard_widgets ( ) | Register dashboard widgets | |
renew_lists_cache ( ) | Renew MailChimp lists cache | |
save_general_settings ( array $settings ) : array | Validates the General settings | |
show_api_key_notice ( ) | Shows a notice when API key is not set. | |
show_generals_setting_page ( ) | Show the API Settings page | |
show_other_setting_page ( ) | Show the Other Settings page | |
sort_menu_items_by_position ( $a, $b ) : integer |
Method | Description | |
---|---|---|
get_api ( ) : MC4WP_API_v3 | ||
get_log ( ) : MC4WP_Debug_Log |
Method | Description | |
---|---|---|
init_upgrade_routines ( ) | Upgrade routine | |
load_translations ( ) | Load the plugin translations |
public __construct ( MC4WP_Admin_Tools $tools, MC4WP_Admin_Messages $messages, MC4WP_MailChimp $mailchimp ) | ||
$tools | MC4WP_Admin_Tools | |
$messages | MC4WP_Admin_Messages | |
$mailchimp | MC4WP_MailChimp |
public customize_admin_texts ( ) |
public dismiss_api_key_notice ( ) |
public enqueue_assets ( ) : boolean | ||
return | boolean |
public register_dashboard_widgets ( ) |
public save_general_settings ( array $settings ) : array | ||
$settings | array | |
return | array |
public show_api_key_notice ( ) |
public show_generals_setting_page ( ) |
public show_other_setting_page ( ) |
protected MC4WP_Admin_Messages $messages | ||
return | MC4WP_Admin_Messages |
protected $plugin_file |