WooCommerce Code Reference

WC_CLI_Tracker_Command
in package

Allows access to tracker snapshot for transparency and debugging.

Tags
since
5.5.0

Table of Contents

register_commands()  : mixed
Registers a command for showing WooCommerce Tracker snapshot data.
show_tracker_snapshot()  : mixed
Dump tracker snapshot data to screen.

Methods

show_tracker_snapshot()

Dump tracker snapshot data to screen.

public static show_tracker_snapshot(array<string|int, mixed> $args, array<string|int, mixed> $assoc_args) : mixed

EXAMPLES

wp wc tracker snapshot --format=yaml wp wc tracker snapshot --format=json

OPTIONS

[--format=] : Render output in a particular format, see WP_CLI\Formatter for details.

Parameters
$args : array<string|int, mixed>

WP-CLI positional arguments.

$assoc_args : array<string|int, mixed>

WP-CLI associative arguments.

Tags
see
Formatter
see
WC_Tracker::get_tracking_data()
Return values
mixed