woocommerce_product_is_visible хук-фильтр . WC 1.0
Returns whether or not the product is visible in the catalog.
Использование
add_filter( 'woocommerce_product_is_visible', 'filter_function_name_6279', 10, 2 ); function filter_function_name_6279( $visible, $id ){ // filter... return $visible; }
- $visible
- -
- $id
- -
Где вызывается хук
woocommerce_product_is_visible
woocommerce/includes/abstracts/abstract-wc-product.php 1505
return apply_filters( 'woocommerce_product_is_visible', $visible, $this->get_id() );
Где используется хук в ядре 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' ) );