WordPress at Your Fingertips
function is not described

WC_CLI::hooks() private WC 1.0

Sets up and hooks WP CLI to our CLI code.

{} It's a method of the class: WC_CLI{}

No Hooks.

Return

null. Nothing.

Usage

// private - for code of main (parent) class only
$result = $this->hooks();

Code of WC_CLI::hooks() WC 5.7.1

private function hooks() {
	WP_CLI::add_hook( 'after_wp_load', 'WC_CLI_Runner::after_wp_load' );
	WP_CLI::add_hook( 'after_wp_load', 'WC_CLI_Tool_Command::register_commands' );
	WP_CLI::add_hook( 'after_wp_load', 'WC_CLI_Update_Command::register_commands' );
	WP_CLI::add_hook( 'after_wp_load', 'WC_CLI_Tracker_Command::register_commands' );
}