• Resolved kayart

    (@kayart)


    So I thought that wc_get_product() function always returned null or false if an invalid ID was passed as an argument. Today, I tried to use wc_get_product() with a negative number (-100 and -100000).

    Both times the function returned a WC_Product_Simple instance. Is this the expected behavior, or is this just a bug?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wc_get_product unexpected behavior’ is closed to new replies.