Set ‘Exclude from feed’ via WooCommerce API (meta data?)
-
I’m setting up an integration from another system to WooCommerce. And some products has to be excluded from the feed. But I can’t find the ‘Exclude from feed’ in the products meta-information. E.g.:
$product = wc_get_product( $product_id ); $product_meta = $product->get_meta() echo '<pre>'; print_r($product_meta); echo '</pre>';
… No ‘exclude_from_feed’ to be found.
So upon creating a bazillion products via the WooCommerce API, how should the
exclude_from_feed
-option be set?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Set ‘Exclude from feed’ via WooCommerce API (meta data?)’ is closed to new replies.