wc_set_loop_product_visibility( int $product_id, bool $value )

Set the current visbility for a product in the woocommerce_loop global.


Description Description


Parameters Parameters

$product_id

(Required) Product it to cache visbiility for.

$value

(Required) The poduct visibility value to cache.


Top ↑

Source Source

File: includes/wc-template-functions.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.