PHP Class Jetpack_Admin_Page, jetpack

Afficher le fichier Open project: automattic/jetpack Class Usage Examples

Méthodes publiques

Свойство 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.

Méthodes publiques

Méthode 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 méthode

public __construct ( )

add_actions() public méthode

public add_actions ( )

add_page_actions() abstract public méthode

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

additional_styles() public méthode

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

admin_head() public méthode

public admin_head ( )

admin_help() public méthode

public admin_help ( )

admin_page_bottom() public méthode

public admin_page_bottom ( )

admin_page_load() public méthode

public admin_page_load ( )

admin_page_top() public méthode

public admin_page_top ( )

admin_scripts() public méthode

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

admin_styles() public méthode

Enqueue the Jetpack admin stylesheet
public admin_styles ( )

check_plan_deactivate_modules() public méthode

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
Résultat boolean | array

get_page_hook() abstract public méthode

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

is_rest_api_enabled() public méthode

Checks if REST API is enabled.
Since: 4.4.2
public is_rest_api_enabled ( ) : boolean
Résultat boolean

is_wp_version_too_old() public méthode

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

page_admin_scripts() abstract public méthode

Enqueue and localize page specific scripts
abstract public page_admin_scripts ( )

page_render() abstract public méthode

Render page specific HTML
abstract public page_render ( )

render() public méthode

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
Résultat 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
Résultat boolean