Question

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #92537
    Tom Anbinder
    Moderator
    Plugin Support

    Hi,

    I’m not sure if I understood your question correctly, but if you need to get excluded product IDs from WC_Coupon object, you need to call:

    $coupon->get_excluded_product_ids();

    and for the excluded category IDs:

    $coupon->get_excluded_product_categories();

    P.S. I’m not sure how you’ve formed the array in your example, but you should be able to get the object itself with:

    $coupon = $your_array['coupon20'];

    Hope that helps.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.