From 3e01a9e65f98fd9800c8fb99951bc715f63ce4a4 Mon Sep 17 00:00:00 2001 From: Claudiu Lodromanean Date: Fri, 28 Jul 2017 13:39:45 -0700 Subject: [PATCH] Updated wc_get_products and WC_Product_Query (markdown) --- wc_get_products-and-WC_Product_Query.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wc_get_products-and-WC_Product_Query.md b/wc_get_products-and-WC_Product_Query.md index 72dec6a..975d20d 100644 --- a/wc_get_products-and-WC_Product_Query.md +++ b/wc_get_products-and-WC_Product_Query.md @@ -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 ); ```