revised wc_get_product_terms to allow override with args
Merge pull request #5541 from splashingpixels/revise-term-function

[2.1] revised wc_get_product_terms to allow override with args