WordPress at a glance
function is not described

WC_Abstract_Legacy_Product::enable_dimensions_display() public WC 1.0

Deprecated from version 3.0.0. It is no longer supported and can be removed in future releases. Use d instead.

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

{} It's a method of the class: WC_Abstract_Legacy_Product{}

Hooks from the method
Return

true/false.

Usage

$WC_Abstract_Legacy_Product = new WC_Abstract_Legacy_Product();
$WC_Abstract_Legacy_Product->enable_dimensions_display();

Changelog

Deprecated Since 3.0.0 Unused.

Code of WC_Abstract_Legacy_Product::enable_dimensions_display() WC 5.0.0

<?php
public function enable_dimensions_display() {
	wc_deprecated_function( 'WC_Product::enable_dimensions_display', '3.0' );
	return apply_filters( 'wc_product_enable_dimensions_display', true ) && ( $this->has_dimensions() || $this->has_weight() || $this->child_has_weight() || $this->child_has_dimensions() );
}