Action_Scheduler\WP_CLI
Action_Command::subcommand_list()
Get a list of scheduled actions.
Display actions based on all arguments supported by as_get_scheduled_actions().
OPTIONS
- [--<field>=<value>]
- One or more arguments to pass to as_get_scheduled_actions().
- [--field=<field>]
- Prints the value of a single property for each action.
- [--fields=<fields>]
- Limit the output to specific object properties.
- [--format=<format>]
- Render output in a particular format.
--- default: table options:
- table
- csv
- ids
- json
- count
- yaml
AVAILABLE FIELDS
These fields will be displayed by default for each action:
- id
- hook
- status
- group
- recurring
- scheduled_date
These fields are optionally available:
- args
- log_entries
Method of the class: Action_Command{}
No Hooks.
Return
null
. Nothing (null).
Usage
$Action_Command = new Action_Command(); $Action_Command->subcommand_list( $args, $assoc_args );
- $args(array) (required)
- Positional arguments.
- $assoc_args(array) (required)
- Keyed arguments.
Action_Command::subcommand_list() Action Command::subcommand list code WC 9.8.1
public function subcommand_list( array $args, array $assoc_args ) { require_once 'Action/List_Command.php'; $command = new Action\List_Command( $args, $assoc_args ); $command->execute(); }