Improve this code
/*
* Increase `1` on line 7 to move position of brand name
*/
add_action( ‘woocommerce_single_product_summary’, ‘wc_brands_add_brand_name’, 1 );
function wc_brands_add_brand_name() {
global $product;
$brands = implode(‘, ‘, wp_get_post_terms($product->get_id(), ‘product_brand’, [‘fields’ => ‘names’]));
echo “Brand: ” . $brands . “”;
}
Open
Last updated: August 24, 2023
0 comments
Log in to comment on this feature request.