title: Woocommerce: product id in the order received url
body: <p>I would like to change the order received (thanks page) url for a new one, which includes the ordered product's ID. </p>
  
  <p>Here is the code in the class-wc-order.php</p>
  
  <pre><code>/**
   * Generates a URL for the thanks page (order received).
   *
   * @return string
   */
  public function get_checkout_order_received_url() {
      $order_received_url = wc_get_endpoint_url( 'order-received', $this-&gt;get_id(), wc_get_page_permalink( 'checkout' ));
  
      if ( 'yes' === get_option( 'woocommerce_force_ssl_checkout' ) || is_ssl() ) {
          $order_received_url = str_replace( 'http:', 'https:', $order_received_url );
      }
  
      $order_received_url = add_query_arg( 'key', $this-&gt;get_order_key(), $order_received_url );
  
      return apply_filters( 'woocommerce_get_checkout_order_received_url', $order_received_url, $product, $this, $product-&gt;id );
  }
  </code></pre>
  
  <p>Any idea?
  Thanks!</p>