PHP 클래스 Jetpack_Admin_Page, jetpack

파일 보기 프로젝트 열기: automattic/jetpack 1 사용 예제들

공개 프로퍼티들

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

공개 메소드들

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

메소드 상세

__construct() 공개 메소드

public __construct ( )

add_actions() 공개 메소드

public add_actions ( )

add_page_actions() 추상적인 공개 메소드

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

additional_styles() 공개 메소드

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

admin_head() 공개 메소드

public admin_head ( )

admin_help() 공개 메소드

public admin_help ( )

admin_page_bottom() 공개 메소드

public admin_page_bottom ( )

admin_page_load() 공개 메소드

public admin_page_load ( )

admin_page_top() 공개 메소드

public admin_page_top ( )

admin_scripts() 공개 메소드

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

admin_styles() 공개 메소드

Enqueue the Jetpack admin stylesheet
public admin_styles ( )

check_plan_deactivate_modules() 공개 메소드

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

get_page_hook() 추상적인 공개 메소드

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

is_rest_api_enabled() 공개 메소드

Checks if REST API is enabled.
부터: 4.4.2
public is_rest_api_enabled ( ) : boolean
리턴 boolean

is_wp_version_too_old() 공개 메소드

Checks if WordPress version is too old to have REST API.
부터: 4.3
public is_wp_version_too_old ( ) : boolean
리턴 boolean

page_admin_scripts() 추상적인 공개 메소드

Enqueue and localize page specific scripts
abstract public page_admin_scripts ( )

page_render() 추상적인 공개 메소드

Render page specific HTML
abstract public page_render ( )

render() 공개 메소드

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

프로퍼티 상세

$block_page_rendering_for_idc 정적으로 공개적으로 프로퍼티

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

$plan_checked 정적으로 공개적으로 프로퍼티

Flag to know if we already checked the plan.
부터: 4.4.0
static public bool $plan_checked
리턴 boolean