Additional args for woocommerce_get_endpoint_url

Closes #6439