PHP Class Automattic\WP\Cron_Control\Main

Inheritance: extends Singleton
Show file Open project: Automattic/vip-mu-plugins-public

Public Methods

Method Description
admin_notice ( ) Display an error if the plugin's conditions aren't met
block_direct_cron ( ) Block direct cron execution as early as possible
block_spawn_cron ( $spawn_cron_args ) Block the spawn_cron() function

Protected Methods

Method Description
class_init ( ) Register hooks

Private Methods

Method Description
set_constants ( ) Define constants that block Core's cron

Method Details

admin_notice() public method

Display an error if the plugin's conditions aren't met
public admin_notice ( )

block_direct_cron() public method

Block direct cron execution as early as possible
public block_direct_cron ( )

block_spawn_cron() public method

Block the spawn_cron() function
public block_spawn_cron ( $spawn_cron_args )

class_init() protected method

Register hooks
protected class_init ( )