wc_get_products on woocommerce_init
-
wc_get_products returns an empty array if used in the woocommerce_init action hook, but the query works in the wordpress init hook. Isn’t it supposed to be safe to use WC functions in woocommerce_init?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘wc_get_products on woocommerce_init’ is closed to new replies.