I am using this to add a custom field to each product's schema
add_filter( 'woocommerce_structured_data_product', function( $markup, $product ) {
if( is_product() ) {
$markup['brand'] = get_post_meta(get_the_ID(), 'brand', TRUE);
}
I also need to add the product's image url and description to the schema, how can I achieve this?
