PHP Class Jetpack_JITM, jetpack

Since: 3.7.0
Mostrar archivo Open project: automattic/jetpack Class Usage Examples

Public Methods

Method Description
akismet_msg ( ) Display JITM in Comments screen prompting user to enable Akismet.
backups_after_publish_msg ( ) Display JITM after a post is published prompting user to enable Backups.
backups_updates_msg ( ) Display JITM in Updates screen prompting user to enable Backups.
editor_msg ( ) Display message in editor prompting user to compose entry in WordPress.com.
get_emblem ( )
init ( )
is_jitm_dismissed ( ) : boolean Check if a JITM was dismissed or not. Currently, dismissing one JITM will dismiss all of them.
jitm_enqueue_files ( $hook ) * Function to enqueue jitm css and js
manage_msg ( ) * Present Manage just in time activation msg on update-core.php
manage_pi_msg ( ) Display message prompting user to enable auto-updates in WordPress.com.
photon_msg ( ) * Present Photon just in time activation msg
photon_tmpl ( ) Display Photon JITM template in Media Library after user uploads an image.
prepare_jitms ( object $screen ) Prepare actions according to screen and post type.
stats_msg ( ) Display message in editor prompting user to enable stats.

Private Methods

Method Description
__construct ( )

Method Details

akismet_msg() public method

Display JITM in Comments screen prompting user to enable Akismet.
Since: 3.9.5
public akismet_msg ( )

backups_after_publish_msg() public method

Display JITM after a post is published prompting user to enable Backups.
Since: 3.9.5

backups_updates_msg() public method

Display JITM in Updates screen prompting user to enable Backups.
Since: 3.9.5
public backups_updates_msg ( )

editor_msg() public method

Display message in editor prompting user to compose entry in WordPress.com.
Since: 3.8.2
public editor_msg ( )

get_emblem() public method

public get_emblem ( )

init() static public method

static public init ( )

is_jitm_dismissed() public method

Check if a JITM was dismissed or not. Currently, dismissing one JITM will dismiss all of them.
Since: 3.8.2
public is_jitm_dismissed ( ) : boolean
return boolean

jitm_enqueue_files() public method

* Function to enqueue jitm css and js
public jitm_enqueue_files ( $hook )

manage_msg() public method

* Present Manage just in time activation msg on update-core.php
public manage_msg ( )

manage_pi_msg() public method

Display message prompting user to enable auto-updates in WordPress.com.
Since: 3.8.2
public manage_pi_msg ( )

photon_msg() public method

* Present Photon just in time activation msg
public photon_msg ( )

photon_tmpl() public method

Display Photon JITM template in Media Library after user uploads an image.
Since: 3.9.0
public photon_tmpl ( )

prepare_jitms() public method

Prepare actions according to screen and post type.
Since: 3.8.2
public prepare_jitms ( object $screen )
$screen object

stats_msg() public method

Display message in editor prompting user to enable stats.
Since: 3.9.0
public stats_msg ( )