Wiki Suggestion: wc_get_orders earliest hook
-
Anybody know how I can contribute to the WC documentation?
I’m trying to use the order query API, which is documented here:
https://github.com/woocommerce/woocommerce/wiki/wc_get_orders-and-WC_Order_Query
I spent quite a bit of time trying to figure out why
wc_get_orders
andWC_Order_Query
were returning junk results, and it turns out you cannot call them before thewoocommerce_after_register_post_type
hook.This is sort-of documented in a
wc_doing_it_wrong
warning inwc_get_order
(“wc_get_order should not be called before post types are registered (woocommerce_after_register_post_type action)”), but that warning wasn’t raised by calling the query APIs. I guess maybe I should just submit a pull request to add a similar warning to those.But just adding one sentence to that wiki documentation could save somebody else a lot of time and frustration in the future. So I was going to do that and then couldn’t find anything about contributing to the documentation.
Can anybody help me either (a) get that added to the wiki page or (b) figure out how I can contribute to the wiki page myself?
The page I need help with: [log in to see the link]
- The topic ‘Wiki Suggestion: wc_get_orders earliest hook’ is closed to new replies.