PHP 클래스 MC4WP_Admin

파일 보기 프로젝트 열기: dannyvankooten/mailchimp-for-wordpress 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

메소드 설명
__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

보호된 메소드들

메소드 설명
get_api ( ) : MC4WP_API_v3
get_log ( ) : MC4WP_Debug_Log

비공개 메소드들

메소드 설명
init_upgrade_routines ( ) Upgrade routine
load_translations ( ) Load the plugin translations

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( MC4WP_Admin_Tools $tools, MC4WP_Admin_Messages $messages, MC4WP_MailChimp $mailchimp )
$tools MC4WP_Admin_Tools
$messages MC4WP_Admin_Messages
$mailchimp MC4WP_MailChimp

add_hooks() 공개 메소드

Registers all hooks
public add_hooks ( )

add_menu_item() 공개 메소드

public add_menu_item ( array $item )
$item array

build_menu() 공개 메소드

Register the setting pages and their menu items
public build_menu ( )

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
public empty_debug_log ( )

enqueue_assets() 공개 메소드

Load scripts and stylesheet on MailChimp for WP Admin pages
public enqueue_assets ( ) : boolean
리턴 boolean

get_api() 보호된 메소드

protected get_api ( ) : MC4WP_API_v3
리턴 MC4WP_API_v3

get_log() 보호된 메소드

protected get_log ( ) : MC4WP_Debug_Log
리턴 MC4WP_Debug_Log

initialize() 공개 메소드

- Registers settings
public initialize ( )

listen_for_actions() 공개 메소드

Listen for _mc4wp_action requests
public listen_for_actions ( )

register_dashboard_widgets() 공개 메소드

Register dashboard widgets

renew_lists_cache() 공개 메소드

Renew MailChimp lists cache
public renew_lists_cache ( )

save_general_settings() 공개 메소드

Validates the General settings
public save_general_settings ( array $settings ) : array
$settings array
리턴 array

show_api_key_notice() 공개 메소드

Shows a notice when API key is not set.
public show_api_key_notice ( )

show_generals_setting_page() 공개 메소드

Show the API Settings page

show_other_setting_page() 공개 메소드

Show the Other Settings page

sort_menu_items_by_position() 공개 메소드

public sort_menu_items_by_position ( $a, $b ) : integer
$a
$b
리턴 integer

프로퍼티 상세

$ads 보호되어 있는 프로퍼티

protected MC4WP_Admin_Ads $ads
리턴 MC4WP_Admin_Ads

$mailchimp 보호되어 있는 프로퍼티

protected MC4WP_MailChimp $mailchimp
리턴 MC4WP_MailChimp

$messages 보호되어 있는 프로퍼티

protected MC4WP_Admin_Messages $messages
리턴 MC4WP_Admin_Messages

$plugin_file 보호되어 있는 프로퍼티

The relative path to the main plugin file from the plugins dir
protected $plugin_file

$tools 보호되어 있는 프로퍼티

protected MC4WP_Admin_Tools $tools
리턴 MC4WP_Admin_Tools