PHP Class WPDKCron

Since: 1.4.20
Author: =undo= ([email protected])
Show file Open project: wpxtreme/wpdk Class Usage Examples

Public Properties

Property Type Description
$name
$recurrence
$timestamp

Public Methods

Method Description
__construct ( string $name, string $timestamp = false, string $recurrence ) : WPDKCron Create an instance of WPDKCron class
cron ( ) Override with your schedule cron process
remove ( ) Remove/Unschedule a cron job

Method Details

__construct() public method

Create an instance of WPDKCron class
public __construct ( string $name, string $timestamp = false, string $recurrence ) : WPDKCron
$name string Unique cron name
$timestamp string Optional. Timestamp for when to run the event.
$recurrence string Optional. How often the event should recur. See WPDKCronSchedules
return WPDKCron

cron() public method

Override with your schedule cron process
public cron ( )

remove() public method

Remove/Unschedule a cron job
public remove ( )

Property Details

$name public property

public $name

$recurrence public property

public $recurrence

$timestamp public property

public $timestamp