revised wc_get_product_terms to allow override with args

cc: @mikejolley please cherry pick this into .10