Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @twenty50cards,

    What you want to do is possible. You’ll first register the meta field with the rest api. Here are the docs on register_metahttps://developer.www.ads-software.com/reference/functions/register_meta/. Make sure to read the notes on the show_in_rest argument.

    The meta key for our tabs is yikes_woo_products_tabs. The data is serialized, which may require additional work to convert to JSON. Something like this will probably work – https://stackoverflow.com/a/48238347

    You also need to make sure that the product post type has support for ‘custom-fields’ in your theme. I believe it does by default, but that’s something to check if it doesn’t work.

    Let me know if that helps,
    Jon

    • This reply was modified 2 years, 10 months ago by jpowersdev. Reason: formatting
    Thread Starter twenty50cards

    (@twenty50cards)

    Hi Jon,

    Thank you very much for your detailed response. We will give that a try.

    Best wishes,

    Benjy

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Access tabs using WooCommerce API’ is closed to new replies.