Action_Scheduler\WP_CLI

Action_Command::next()publicWC 1.0

Get the ID or timestamp of the next scheduled action.

OPTIONS

<hook>
The hook of the next scheduled action.
[--args=<args>]
JSON object of arguments to search for next scheduled action.
--- default: []
---
[--group=<group>]
The group to which the next scheduled action is assigned.
--- default: ''
---
[--raw]
Display the raw output of as_next_scheduled_action() (timestamp or boolean).

Method of the class: Action_Command{}

No Hooks.

Return

null. Nothing (null).

Usage

$Action_Command = new Action_Command();
$Action_Command->next( $args, $assoc_args );
$args(array) (required)
Positional arguments.
$assoc_args(array) (required)
Keyed arguments.

Action_Command::next() code WC 9.8.1

public function next( array $args, array $assoc_args ) {
	require_once 'Action/Next_Command.php';
	$command = new Action\Next_Command( $args, $assoc_args );
	$command->execute();
}