Action_Scheduler\WP_CLI
Action_Command::next
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{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$Action_Command = new Action_Command(); $Action_Command->next( $args, $assoc_args );
- $args(массив) (обязательный)
- Positional arguments.
- $assoc_args(массив) (обязательный)
- Keyed arguments.
Код Action_Command::next() Action Command::next WC 11.2.2
public function next( array $args, array $assoc_args ) {
require_once __DIR__ . '/Action/Next_Command.php';
$command = new Action\Next_Command( $args, $assoc_args );
$command->execute();
}