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

Устарел с версии 3.0.0. Больше не поддерживается и может быть удален. Используйте d.

Deprecated: 3.0.0 Unused.

Returns whether or not we are showing dimensions on the product page.

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

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  $true 
 *
 * @return 
 */
function wp_kama_wc_product_enable_dimensions_display_filter( $true ){

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

Список изменений

Устарела с 3.0.0 Unused.

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

WC_Abstract_Legacy_Product::enable_dimensions_display()
wc_product_enable_dimensions_display
woocommerce_default_product_tabs()
wc_product_enable_dimensions_display
wc_display_product_attributes()
wc_product_enable_dimensions_display
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/includes/wc-template-functions.php 1889
if ( $product && ( $product->has_attributes() || apply_filters( 'wc_product_enable_dimensions_display', $product->has_weight() || $product->has_dimensions() ) ) ) {
woocommerce/includes/wc-template-functions.php 3490
$display_dimensions = apply_filters( 'wc_product_enable_dimensions_display', $product->has_weight() || $product->has_dimensions() );

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

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