• Resolved nicolailund

    (@nicolailund)


    Hi,

    Is this plugin compatible with update/creating using REST API? I’m looking for an option to create products using API (from Pyhton) and at the time of creation also assign what user roles this product is active for and which ones it isn’t active for.

    Is that possible?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    No, I’m sorry.
    But basically what we do to save the visibility data is storing 2 meta_keys on wp_postmeta:

    _alg_wc_pvbur_invisible
    _alg_wc_pvbur_visible

    So for example, if you want to set product ID 48 as invisible for administrators that is how you can do it:

    update_post_meta(48,'_alg_wc_pvbur_invisible',array('administrator'));

    The last parameter is always an array.

    Thread Starter nicolailund

    (@nicolailund)

    Hi Pablo.

    Thank you so much for a quick answer and a great plugin. I will play around with your suggestion to see how to integrate it into my code.

    Thanks again.

    Best regards,
    Nicolai

    • This reply was modified 6 years, 5 months ago by nicolailund.

    Anytime ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can this plugin be used with REST API?’ is closed to new replies.