Action_Scheduler\WP_CLI

Action_Command::logspublicWC 1.0

Get logs for a scheduled action.

OPTIONS

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

Метод класса: Action_Command{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$Action_Command = new Action_Command();
$Action_Command->logs( $args );
$args(массив) (обязательный)
Positional arguments.

Код Action_Command::logs() WC 10.5.1

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