PHP Class Jetpack_Admin_Page, jetpack

ファイルを表示 Open project: automattic/jetpack Class Usage Examples

Public Properties

Property Type Description
$block_page_rendering_for_idc boolean Should we block the page rendering because the site is in IDC?
$plan_checked boolean Flag to know if we already checked the plan.

Public Methods

Method Description
__construct ( )
add_actions ( )
add_page_actions ( $hook ) Add page specific actions given the page hook
additional_styles ( ) Function called after admin_styles to load any additional needed styles.
admin_head ( )
admin_help ( )
admin_page_bottom ( )
admin_page_load ( )
admin_page_top ( )
admin_scripts ( ) Add page specific scripts and jetpack stats for all menu pages
admin_styles ( ) Enqueue the Jetpack admin stylesheet
check_plan_deactivate_modules ( $page ) : boolean | array Checks the site plan and deactivates modules that were active but are no longer included in the plan.
get_page_hook ( ) Create a menu item for the page and returns the hook
is_rest_api_enabled ( ) : boolean Checks if REST API is enabled.
is_wp_version_too_old ( ) : boolean Checks if WordPress version is too old to have REST API.
page_admin_scripts ( ) Enqueue and localize page specific scripts
page_render ( ) Render page specific HTML
render ( ) Render the page with a common top and bottom part, and page specific content

Method Details

__construct() public method

public __construct ( )

add_actions() public method

public add_actions ( )

add_page_actions() abstract public method

Add page specific actions given the page hook
abstract public add_page_actions ( $hook )

additional_styles() public method

Function called after admin_styles to load any additional needed styles.
Since: 4.3.0
public additional_styles ( )

admin_head() public method

public admin_head ( )

admin_help() public method

public admin_help ( )

admin_page_bottom() public method

public admin_page_bottom ( )

admin_page_load() public method

public admin_page_load ( )

admin_page_top() public method

public admin_page_top ( )

admin_scripts() public method

Add page specific scripts and jetpack stats for all menu pages
public admin_scripts ( )

admin_styles() public method

Enqueue the Jetpack admin stylesheet
public admin_styles ( )

check_plan_deactivate_modules() public method

Checks the site plan and deactivates modules that were active but are no longer included in the plan.
Since: 4.4.0
public check_plan_deactivate_modules ( $page ) : boolean | array
$page
return boolean | array

get_page_hook() abstract public method

Create a menu item for the page and returns the hook
abstract public get_page_hook ( )

is_rest_api_enabled() public method

Checks if REST API is enabled.
Since: 4.4.2
public is_rest_api_enabled ( ) : boolean
return boolean

is_wp_version_too_old() public method

Checks if WordPress version is too old to have REST API.
Since: 4.3
public is_wp_version_too_old ( ) : boolean
return boolean

page_admin_scripts() abstract public method

Enqueue and localize page specific scripts
abstract public page_admin_scripts ( )

page_render() abstract public method

Render page specific HTML
abstract public page_render ( )

render() public method

Render the page with a common top and bottom part, and page specific content
public render ( )

Property Details

$block_page_rendering_for_idc static_oe public_oe property

Should we block the page rendering because the site is in IDC?
static public bool $block_page_rendering_for_idc
return boolean

$plan_checked static_oe public_oe property

Flag to know if we already checked the plan.
Since: 4.4.0
static public bool $plan_checked
return boolean