(hook_prefix)catalog_visibility хук-фильтр . WC 1.0
Get catalog visibility.
Использование
add_filter( '(hook_prefix)catalog_visibility', 'filter_function_name_9153', 10, 2 ); function filter_function_name_9153( $context, $that ){ // filter... return $context; }
- $context(строка)
- What the value is for. Valid values are view and edit.
- $that
- -
Где вызывается хук
(hook_prefix)catalog_visibility
woocommerce/includes/class-wc-product-variation.php 419
return apply_filters( $this->get_hook_prefix() . 'catalog_visibility', $this->parent_data['catalog_visibility'], $this );