title: Add brand type to WooCommerce
body: <p>I am trying to add the Brand Name to rich data in Woocommerce.
  Before i used the code below, but Google has updated their guidance on how to do this.
  It used to be <strong>&quot;Brand&quot;:&quot;Brandname&quot;</strong>; but they changed it to: <strong>“brand”: {“@type”: “Brand”, “name”: “Brandname”}</strong>.</p>
  <p>Could somebody help me adjust the code below to include the new markup structure?</p>
  <pre><code>function custom_woocommerce_structured_data_product ($data) {
      global $product;
      
      $data['Brand'] = $product-&gt;get_attribute('Fabrikant') ?? null;
      $data['mpn'] = $product-&gt;get_sku() ?? null;
      
      return $data;
  }
  add_filter( 'woocommerce_structured_data_product', 'custom_woocommerce_structured_data_product' );
  </code></pre>