Action_Scheduler\WP_CLI

Action_Command::logs()publicWC 1.0

Get logs for a scheduled action.

OPTIONS

<id>
The ID of the action to get.
--- default: 0
---

Method of the class: Action_Command{}

No Hooks.

Return

null. Nothing (null).

Usage

$Action_Command = new Action_Command();
$Action_Command->logs( $args );
$args(array) (required)
Positional arguments.

Action_Command::logs() code WC 9.8.1

public function logs( array $args ) {
	$command = sprintf( 'action-scheduler action get %d --field=log_entries', $args[0] );
	WP_CLI::runcommand( $command );
}