WC_CLI_REST_Command::set_supported_ids()publicWC 1.0

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

Метод класса: WC_CLI_REST_Command{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WC_CLI_REST_Command = new WC_CLI_REST_Command();
$WC_CLI_REST_Command->set_supported_ids( $supported_ids );
$supported_ids(массив)
List of supported IDs.
По умолчанию: array()

Код WC_CLI_REST_Command::set_supported_ids() WC 8.7.0

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