메소드 |
설명 |
|
__construct ( ) |
Class constructor. Handles hooking actions and filters. |
|
action_admin_footer ( ) |
Hooks the WP admin_footer action to add our list table JS template. |
|
action_admin_footer_early ( ) |
Hooks the WP admin_footer action early to output JSON encoded
JS data listing the mandatory modules, this is used by our
JS template. |
|
action_load_jetpack_modules ( ) |
===== |
|
add_mandatory_modules ( array $modules ) : array |
Takes an array of module slugs and adds our mandatory modules
if they are not already present. |
|
filter_jetpack_get_default_modules ( array $modules ) : array |
Hooks the JP jetpack_get_default_modules filter to add
in our mandatory modules to the array. |
|
filter_pre_update_option_jetpack_active_modules ( array $modules ) : array |
Hooks the WP pre_update filter on the jetpack_active_modules option to
add in our mandatory modules to the array. |
|
get_mandatory_modules ( ) : array |
A getter for the mandatory_modules property. |
|
init ( ) : WPCOM_VIP_Jetpack_Mandatory |
Initiate an instance of this class if one doesn't
exist already. Return the WPCOM_VIP_Jetpack_Mandatory instance. |
|
js_templates ( ) |
Provides a JS template for the JP module listing template. This overrides
the JP template of the same purpose. |
|