• Resolved deulo

    (@deulo)


    Is there any way to filter Woocommerce product post type by those product that aren’t out of stock? I’ve tried to search for “_stock” meta key but it doesn’t exist in the “advanced query loop” meta key autocomplete

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ryan Welcher

    (@welcher)

    @deulo thanks for opening this!

    Typically meta keys prefixed with _ are considered private and I believe are not included in the REST API response.

    However, with the changes in the 1.1.0 version of the plugin, you can add the name of the meta manually into the field, hit return, and it should work as expected.

    Please let me know if you run into issues!

    • This reply was modified 1 year, 10 months ago by Ryan Welcher.
    Thread Starter deulo

    (@deulo)

    It worked with _stock_status = instock

    Thank you very much!!

    Plugin Author Ryan Welcher

    (@welcher)

    Great to hear! I’ll close this out but please feel free to open a new issues if you run into anything else ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Woocomerce Filter by stock’ is closed to new replies.