PHP Class Automattic\WP\Cron_Control\REST_API

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

Public Methods

Method Description
check_secret ( $request ) Check if request is authorized
get_events ( ) List events pending for the current period
rest_api_init ( ) Register API routes
run_event ( $request ) Execute a specific event

Protected Methods

Method Description
class_init ( ) Register hooks

Method Details

check_secret() public method

Check if request is authorized
public check_secret ( $request )

class_init() protected method

Register hooks
protected class_init ( )

get_events() public method

List events pending for the current period
public get_events ( )

rest_api_init() public method

Register API routes
public rest_api_init ( )

run_event() public method

Execute a specific event
public run_event ( $request )