Action_Scheduler\WP_CLI

Action_Command::nextpublicWC 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).

Метод класса: Action_Command{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$Action_Command = new Action_Command();
$Action_Command->next( $args, $assoc_args );
$args(массив) (обязательный)
Positional arguments.
$assoc_args(массив) (обязательный)
Keyed arguments.

Код Action_Command::next() WC 10.0.2

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