Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/woocomme.../includes/interfac...
File: class-wc-queue-interface.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Queue Interface
[2] Fix | Delete
*
[3] Fix | Delete
* @version 3.5.0
[4] Fix | Delete
* @package WooCommerce\Interface
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
/**
[8] Fix | Delete
* WC Queue Interface
[9] Fix | Delete
*
[10] Fix | Delete
* Functions that must be defined to implement an action/job/event queue.
[11] Fix | Delete
*
[12] Fix | Delete
* @version 3.5.0
[13] Fix | Delete
*/
[14] Fix | Delete
interface WC_Queue_Interface {
[15] Fix | Delete
[16] Fix | Delete
/**
[17] Fix | Delete
* Enqueue an action to run one time, as soon as possible
[18] Fix | Delete
*
[19] Fix | Delete
* @param string $hook The hook to trigger.
[20] Fix | Delete
* @param array $args Arguments to pass when the hook triggers.
[21] Fix | Delete
* @param string $group The group to assign this job to.
[22] Fix | Delete
* @return int The action ID
[23] Fix | Delete
*/
[24] Fix | Delete
public function add( $hook, $args = array(), $group = '' );
[25] Fix | Delete
[26] Fix | Delete
/**
[27] Fix | Delete
* Schedule an action to run once at some time in the future
[28] Fix | Delete
*
[29] Fix | Delete
* @param int $timestamp When the job will run.
[30] Fix | Delete
* @param string $hook The hook to trigger.
[31] Fix | Delete
* @param array $args Arguments to pass when the hook triggers.
[32] Fix | Delete
* @param string $group The group to assign this job to.
[33] Fix | Delete
* @return int The action ID
[34] Fix | Delete
*/
[35] Fix | Delete
public function schedule_single( $timestamp, $hook, $args = array(), $group = '' );
[36] Fix | Delete
[37] Fix | Delete
/**
[38] Fix | Delete
* Schedule a recurring action
[39] Fix | Delete
*
[40] Fix | Delete
* @param int $timestamp When the first instance of the job will run.
[41] Fix | Delete
* @param int $interval_in_seconds How long to wait between runs.
[42] Fix | Delete
* @param string $hook The hook to trigger.
[43] Fix | Delete
* @param array $args Arguments to pass when the hook triggers.
[44] Fix | Delete
* @param string $group The group to assign this job to.
[45] Fix | Delete
* @return int The action ID
[46] Fix | Delete
*/
[47] Fix | Delete
public function schedule_recurring( $timestamp, $interval_in_seconds, $hook, $args = array(), $group = '' );
[48] Fix | Delete
[49] Fix | Delete
/**
[50] Fix | Delete
* Schedule an action that recurs on a cron-like schedule.
[51] Fix | Delete
*
[52] Fix | Delete
* @param int $timestamp The schedule will start on or after this time.
[53] Fix | Delete
* @param string $cron_schedule A cron-link schedule string.
[54] Fix | Delete
* @see http://en.wikipedia.org/wiki/Cron
[55] Fix | Delete
* * * * * * *
[56] Fix | Delete
* ┬ ┬ ┬ ┬ ┬ ┬
[57] Fix | Delete
* | | | | | |
[58] Fix | Delete
* | | | | | + year [optional]
[59] Fix | Delete
* | | | | +----- day of week (0 - 7) (Sunday=0 or 7)
[60] Fix | Delete
* | | | +---------- month (1 - 12)
[61] Fix | Delete
* | | +--------------- day of month (1 - 31)
[62] Fix | Delete
* | +-------------------- hour (0 - 23)
[63] Fix | Delete
* +------------------------- min (0 - 59)
[64] Fix | Delete
* @param string $hook The hook to trigger.
[65] Fix | Delete
* @param array $args Arguments to pass when the hook triggers.
[66] Fix | Delete
* @param string $group The group to assign this job to.
[67] Fix | Delete
* @return int The action ID
[68] Fix | Delete
*/
[69] Fix | Delete
public function schedule_cron( $timestamp, $cron_schedule, $hook, $args = array(), $group = '' );
[70] Fix | Delete
[71] Fix | Delete
/**
[72] Fix | Delete
* Dequeue the next scheduled instance of an action with a matching hook (and optionally matching args and group).
[73] Fix | Delete
*
[74] Fix | Delete
* Any recurring actions with a matching hook should also be cancelled, not just the next scheduled action.
[75] Fix | Delete
*
[76] Fix | Delete
* @param string $hook The hook that the job will trigger.
[77] Fix | Delete
* @param array $args Args that would have been passed to the job.
[78] Fix | Delete
* @param string $group The group the job is assigned to (if any).
[79] Fix | Delete
*/
[80] Fix | Delete
public function cancel( $hook, $args = array(), $group = '' );
[81] Fix | Delete
[82] Fix | Delete
/**
[83] Fix | Delete
* Dequeue all actions with a matching hook (and optionally matching args and group) so no matching actions are ever run.
[84] Fix | Delete
*
[85] Fix | Delete
* @param string $hook The hook that the job will trigger.
[86] Fix | Delete
* @param array $args Args that would have been passed to the job.
[87] Fix | Delete
* @param string $group The group the job is assigned to (if any).
[88] Fix | Delete
*/
[89] Fix | Delete
public function cancel_all( $hook, $args = array(), $group = '' );
[90] Fix | Delete
[91] Fix | Delete
/**
[92] Fix | Delete
* Get the date and time for the next scheduled occurrence of an action with a given hook
[93] Fix | Delete
* (an optionally that matches certain args and group), if any.
[94] Fix | Delete
*
[95] Fix | Delete
* @param string $hook The hook that the job will trigger.
[96] Fix | Delete
* @param array $args Filter to a hook with matching args that will be passed to the job when it runs.
[97] Fix | Delete
* @param string $group Filter to only actions assigned to a specific group.
[98] Fix | Delete
* @return WC_DateTime|null The date and time for the next occurrence, or null if there is no pending, scheduled action for the given hook
[99] Fix | Delete
*/
[100] Fix | Delete
public function get_next( $hook, $args = null, $group = '' );
[101] Fix | Delete
[102] Fix | Delete
/**
[103] Fix | Delete
* Find scheduled actions.
[104] Fix | Delete
*
[105] Fix | Delete
* @param array $args Possible arguments, with their default values.
[106] Fix | Delete
* 'hook' => '' - the name of the action that will be triggered.
[107] Fix | Delete
* 'args' => null - the args array that will be passed with the action.
[108] Fix | Delete
* 'date' => null - the scheduled date of the action. Expects a DateTime object, a unix timestamp, or a string that can parsed with strtotime(). Used in UTC timezone.
[109] Fix | Delete
* 'date_compare' => '<=' - operator for testing "date". accepted values are '!=', '>', '>=', '<', '<=', '='.
[110] Fix | Delete
* 'modified' => null - the date the action was last updated. Expects a DateTime object, a unix timestamp, or a string that can parsed with strtotime(). Used in UTC timezone.
[111] Fix | Delete
* 'modified_compare' => '<=' - operator for testing "modified". accepted values are '!=', '>', '>=', '<', '<=', '='.
[112] Fix | Delete
* 'group' => '' - the group the action belongs to.
[113] Fix | Delete
* 'status' => '' - ActionScheduler_Store::STATUS_COMPLETE or ActionScheduler_Store::STATUS_PENDING.
[114] Fix | Delete
* 'claimed' => null - TRUE to find claimed actions, FALSE to find unclaimed actions, a string to find a specific claim ID.
[115] Fix | Delete
* 'per_page' => 5 - Number of results to return.
[116] Fix | Delete
* 'offset' => 0.
[117] Fix | Delete
* 'orderby' => 'date' - accepted values are 'hook', 'group', 'modified', or 'date'.
[118] Fix | Delete
* 'order' => 'ASC'.
[119] Fix | Delete
* @param string $return_format OBJECT, ARRAY_A, or ids.
[120] Fix | Delete
* @return array
[121] Fix | Delete
*/
[122] Fix | Delete
public function search( $args = array(), $return_format = OBJECT );
[123] Fix | Delete
}
[124] Fix | Delete
[125] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function