Method |
Description |
|
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. |
|