Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'woocommerce_after_shop_loop_item_title', 'wc_show_dimensions', 9 );
- function wc_show_dimensions() {
- global $product;
- $dimensions = $product->get_dimensions();
- if ( ! empty( $dimensions ) ) {
- echo '<span class="dimensions">' . $dimensions . '</span>';
- }
- }
Add Comment
Please, Sign In to add comment