woocommerce_product_dimensions filter-hookWC 1.0

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

WC_Product::get_dimensions()
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 );

Where the hook is used in WooCommerce

Usage not found.