WC_CLI_REST_Command::set_supported_ids
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() WC CLI REST Command::set supported ids code WC 10.8.1
public function set_supported_ids( $supported_ids = array() ) {
$this->supported_ids = $supported_ids;
}