Deprecido: wc_product :: get_dimensions Error de error
add_action( 'woocommerce_single_product_summary', 'baba_spec', 35 );
function baba_spec() {
global $product;
$dimensions = wc_format_dimensions($product->get_dimensions(false));
if ( $product->has_dimensions() ) {
$label = __( 'Dimensions: ', 'babasouktextdomain' );
print '<span class="wpcf-field-name">' . $label . '</span>';
echo '<span class="dimensions">' . $dimensions . '</span>';
}
print '</div>';
}
Helpful Hawk