includes/api/class-wc-rest-products-controller.php 1 location
|
@@ 1467-1469 (lines=3) @@
|
| 1464 |
|
// Downloads. |
| 1465 |
|
if ( 'yes' === $is_downloadable ) { |
| 1466 |
|
// Downloadable files. |
| 1467 |
|
if ( isset( $variation['downloads'] ) && is_array( $variation['downloads'] ) ) { |
| 1468 |
|
$this->save_downloadable_files( $product->id, $variation['downloads'], $variation_id ); |
| 1469 |
|
} |
| 1470 |
|
|
| 1471 |
|
// Download limit. |
| 1472 |
|
if ( isset( $variation['download_limit'] ) ) { |
includes/cli/class-wc-cli-product.php 1 location
|
@@ 1727-1729 (lines=3) @@
|
| 1724 |
|
// Downloads |
| 1725 |
|
if ( 'yes' == $is_downloadable ) { |
| 1726 |
|
// Downloadable files |
| 1727 |
|
if ( isset( $variation['downloads'] ) && is_array( $variation['downloads'] ) ) { |
| 1728 |
|
$this->save_downloadable_files( $id, $variation['downloads'], $variation_id ); |
| 1729 |
|
} |
| 1730 |
|
|
| 1731 |
|
// Download limit |
| 1732 |
|
if ( isset( $variation['download_limit'] ) ) { |