woocommerce_product_dimensions
Usage
add_filter( 'woocommerce_product_dimensions', 'wp_kama_woocommerce_product_dimensions_filter', 10, 2 ); /** * Function for `woocommerce_product_dimensions` filter-hook. * * @param $wc_format_dimensions * @param $that * * @return */ function wp_kama_woocommerce_product_dimensions_filter( $wc_format_dimensions, $that ){ // filter... return $wc_format_dimensions; }
- $wc_format_dimensions
- -
- $that
- -
Where the hook is called
woocommerce_product_dimensions
woocommerce/includes/abstracts/abstract-wc-product.php 472
return apply_filters( 'woocommerce_product_dimensions', wc_format_dimensions( $this->get_dimensions( false ) ), $this );