WooCommerce Code Reference

WC_CLI_Tool_Command
in package

Hooks up our system status tools to the CLI.

Forked from wp-cli/restful (by Daniel Bachhuber, released under the MIT license https://opensource.org/licenses/MIT). https://github.com/wp-cli/restful

Tags
version
3.0.0

Table of Contents

register_commands()  : mixed
Registers just a 'list' and 'run' command to the WC CLI since we only want to enable certain actions on the system status tools endpoints.

Methods

register_commands()

Registers just a 'list' and 'run' command to the WC CLI since we only want to enable certain actions on the system status tools endpoints.

public static register_commands() : mixed
Return values
mixed