Updated wc_get_products and WC_Product_Query (markdown)

Claudiu Lodromanean 2017-07-28 13:39:45 -07:00
parent 13c145c8da
commit 3e01a9e65f
1 changed files with 2 additions and 2 deletions

@ -336,12 +336,12 @@ $products = wc_get_products( $args );
**visibility**
Accepts a string or array of strings: One or more of 'visible', 'catalog', 'search', or 'hidden'.
Accepts a string: One of 'visible', 'catalog', 'search', or 'hidden'.
```
// Get products that show in the catalog.
$args = array(
'visibility' => array( 'visible', 'catalog' ),
'visibility' => 'catalog',
);
$products = wc_get_products( $args );
```