• I’m building my own plugin which allows creating WooCoommerce products consisting of other products. According to what I read [1], such a bundle of products should be represented by a different schema – Offer with Products inside itemOffered property.

    In a perfect world, I’d be able to use a filter (is there one?) to replace an existing Product schema and instead call a function (which one?) for each of the products in the bundle, get their JSON/LD schema and then merge inside an Offer.

    My questions Are:

    1. Is there a filter which allows to modify the Product schema right before it gets echo’ed?
    2. Is there a way I could get the JSON/LD schema for given product as a string?
    3. Is this something that is supported in Yoast Premium? I’d gladly buy a license.

    I tried to dig into the codebase of Yoast SEO but no luck –?I don’t see a way to modify JSON/LD that’s being output in this case.

    [1]: https://stackoverflow.com/questions/51018149/schema-org-for-product-bundles

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WooCommerce – product bundles?’ is closed to new replies.