Add the ean code (gtin) in the structured data of the product (Schema.org) in WooCommerce
I am using this snippet to display ean value for gtin in Woocommerce's product schema: add_filter( 'woocommerce_structured_data_product', 'filter_woocommerce_structured_data_product', 10, 2 ); function filter_woocommerce_structured_data_product( $markup, $product ) { if ( empty( $markup[ 'gtin8' ] ) ) { $markup[ 'gtin8' ] =…