(hook_prefix)catalog_visibility
Get catalog visibility.
Usage
add_filter( '(hook_prefix)catalog_visibility', 'wp_kama_hook_prefixcatalog_visibility_filter', 10, 2 ); /** * Function for `(hook_prefix)catalog_visibility` filter-hook. * * @param string $context What the value is for. Valid values are view and edit. * @param $that * * @return string */ function wp_kama_hook_prefixcatalog_visibility_filter( $context, $that ){ // filter... return $context; }
- $context(string)
- What the value is for. Valid values are view and edit.
- $that
- -
Where the hook is called
(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 );