Action_Scheduler\WP_CLI
Action_Command::get
Get details about a scheduled action.
OPTIONS
- <id>
- The ID of the action to get.
--- default: 0
--- - [--field=<field>]
- Instead of returning the whole action, returns the value of a single field.
- [--fields=<fields>]
- Limit the output to specific fields (comma-separated). Defaults to all fields.
- [--format=<format>]
- Render output in a particular format.
--- default: table options:
- table
- csv
- json
- yaml
Метод класса: Action_Command{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$Action_Command = new Action_Command(); $Action_Command->get( $args, $assoc_args );
- $args(массив) (обязательный)
- Positional arguments.
- $assoc_args(массив) (обязательный)
- Keyed arguments.
Код Action_Command::get() Action Command::get WC 9.9.5
public function get( array $args, array $assoc_args ) { require_once 'Action/Get_Command.php'; $command = new Action\Get_Command( $args, $assoc_args ); $command->execute(); }