WC_REST_Products_V1_Controller::save_product_imagesprotectedWC 1.0

Устарела с версии 3.0.0. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

Save product images.

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

Хуков нет.

Возвращает

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

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->save_product_images( $product_id, $images );
$product_id(int) (обязательный)
.
$images(массив) (обязательный)
.

Список изменений

Устарела с 3.0.0

Код WC_REST_Products_V1_Controller::save_product_images() WC 10.4.2

protected function save_product_images( $product_id, $images ) {
	$product = wc_get_product( $product_id );

	return set_product_images( $product, $images );
}