wc_product_enable_dimensions_display хук-фильтрWC 1.0

Использование

add_filter( 'wc_product_enable_dimensions_display', 'wp_kama_wc_product_enable_dimensions_display_filter' );

/**
 * Function for `wc_product_enable_dimensions_display` filter-hook.
 * 
 * @param  $condition 
 *
 * @return 
 */
function wp_kama_wc_product_enable_dimensions_display_filter( $condition ){

	// filter...
	return $condition;
}
$condition
-

Где вызывается хук

woocommerce_default_product_tabs()
wc_product_enable_dimensions_display
wc_display_product_attributes()
wc_product_enable_dimensions_display
WC_Abstract_Legacy_Product::enable_dimensions_display()
wc_product_enable_dimensions_display
woocommerce/includes/wc-template-functions.php 1914
if ( $product && ( $product->has_attributes() || apply_filters( 'wc_product_enable_dimensions_display', $product->has_weight() || $product->has_dimensions() ) ) ) {
woocommerce/includes/wc-template-functions.php 3571
$display_dimensions = apply_filters( 'wc_product_enable_dimensions_display', $product->has_weight() || $product->has_dimensions() );
woocommerce/includes/legacy/abstract-wc-legacy-product.php 633
return apply_filters( 'wc_product_enable_dimensions_display', true ) && ( $this->has_dimensions() || $this->has_weight() || $this->child_has_weight() || $this->child_has_dimensions() );

Где используется хук в WooCommerce

Использование не найдено.