WC_CLI_REST_Command::set_supported_idspublicWC 1.0

Passes supported ID arguments (things like product_id, order_id, etc) that we should look for in addition to id.

Method of the class: WC_CLI_REST_Command{}

No Hooks.

Returns

null. Nothing (null).

Usage

$WC_CLI_REST_Command = new WC_CLI_REST_Command();
$WC_CLI_REST_Command->set_supported_ids( $supported_ids );
$supported_ids(array)
List of supported IDs.
Default: array()

WC_CLI_REST_Command::set_supported_ids() code WC 9.9.5

public function set_supported_ids( $supported_ids = array() ) {
	$this->supported_ids = $supported_ids;
}