WordPress at Your Fingertips
function is not described

WC_CLI_REST_Command::set_supported_ids() public WC 1.0

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

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

No Hooks.


null. Nothing.


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

Code of WC_CLI_REST_Command::set_supported_ids() WC 5.9.0

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