PHP 클래스 Jetpack_Connection_Banner, jetpack

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

공개 메소드들

메소드 설명
check_ab_test_not_expired ( null $now = null ) : boolean Checks whether the connection banner A/B test should be ran.
enqueue_banner_scripts ( ) Enqueues JavaScript for new connection banner.
get_dismiss_and_deactivate_url ( ) : string Returns a URL that will dismiss allow the current user to dismiss the connection banner.
get_random_connection_banner_value ( ) : integer Gets the value for which connection banner to show, and initializes if not set.
init ( )
maybe_initialize_hooks ( $current_screen ) Will initialize hooks to display the new and legacy connection banners if the current user can connect Jetpack, if Jetpack has not been deactivated, and if the current page is the plugins page.
network_connect_notice ( ) Renders the legacy network connection banner.
render_banner ( ) Renders the new connection banner.
render_legacy_banner ( ) Renders the legacy connection banner.

비공개 메소드들

메소드 설명
__construct ( ) Jetpack_Connection_Banner constructor.

메소드 상세

check_ab_test_not_expired() 정적인 공개 메소드

Checks whether the connection banner A/B test should be ran.
부터: 4.4.0
static public check_ab_test_not_expired ( null $now = null ) : boolean
$now null
리턴 boolean

enqueue_banner_scripts() 공개 메소드

Enqueues JavaScript for new connection banner.
부터: 4.4.0

get_dismiss_and_deactivate_url() 공개 메소드

Returns a URL that will dismiss allow the current user to dismiss the connection banner.
부터: 4.4.0

get_random_connection_banner_value() 정적인 공개 메소드

Gets the value for which connection banner to show, and initializes if not set.
부터: 4.4.0

init() 정적인 공개 메소드

static public init ( )

maybe_initialize_hooks() 공개 메소드

This method should not be called if the site is connected to WordPress.com or if the site is in development mode.
부터: 4.4.0
public maybe_initialize_hooks ( $current_screen )
$current_screen

network_connect_notice() 공개 메소드

Renders the legacy network connection banner.

render_banner() 공개 메소드

Renders the new connection banner.
부터: 4.4.0
public render_banner ( )

render_legacy_banner() 공개 메소드

Renders the legacy connection banner.