WC_Abstract_Legacy_Product::enable_dimensions_display()publicWC 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.

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.

WC_Abstract_Legacy_Product::enable_dimensions_display() code WC 8.7.0

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() );
}