Action_Scheduler\WP_CLI

Action_Command::get()publicWC 1.0

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

Method of the class: Action_Command{}

No Hooks.

Return

null. Nothing (null).

Usage

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

Action_Command::get() code WC 9.8.1

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