wc_get_loop_product_visibility( int $product_id )

Gets the cached current visibility for a product from the woocommerce_loop global.


Description Description


Parameters Parameters

$product_id

(Required) Product id to get the cached visibility for.


Top ↑

Return Return

(bool|null) The cached product visibility, or null if on visibility has been cached for that product.


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.