woocommerce_product_post_type_link_parent_category_only
Использование
add_filter( 'woocommerce_product_post_type_link_parent_category_only', 'wp_kama_woocommerce_product_post_type_link_parent_category_only_filter' ); /** * Function for `woocommerce_product_post_type_link_parent_category_only` filter-hook. * * @param $false * * @return */ function wp_kama_woocommerce_product_post_type_link_parent_category_only_filter( $false ){ // filter... return $false; }
- $false
- -
Где вызывается хук
woocommerce_product_post_type_link_parent_category_only
woocommerce/includes/wc-product-functions.php 243
if ( apply_filters( 'woocommerce_product_post_type_link_parent_category_only', false ) ) {