woocommerce_product_is_visible filter-hook . WC 1.0
Returns whether or not the product is visible in the catalog.
Usage
add_filter( 'woocommerce_product_is_visible', 'filter_function_name_7296', 10, 2 ); function filter_function_name_7296( $visible, $id ){ // filter... return $visible; }
- $visible
- -
- $id
- -
Where the hook is called
woocommerce_product_is_visible
woocommerce/includes/abstracts/abstract-wc-product.php 1505
return apply_filters( 'woocommerce_product_is_visible', $visible, $this->get_id() );
Where in WP core the hook is used WooCommerce
woocommerce/includes/shortcodes/class-wc-shortcode-products.php 657
add_action( 'woocommerce_product_is_visible', array( $this, 'set_product_as_visible' ) );
woocommerce/includes/shortcodes/class-wc-shortcode-products.php 663
remove_action( 'woocommerce_product_is_visible', array( $this, 'set_product_as_visible' ) );