title: How to dynamically populate a shortcode option with the current product ID (WooCommerce)
body: <p>How can I create a custom function in WP to dynamically populate a shortcode option with the product ID for the current product?  I figured out how to echo the shortcode (using do_shortcode) on all single product pages, but I need to include the current product's ID in the shortcode so that it only shows info relevant for the current product.</p>
  
  <p>Example: Here is the shortcode used for a specific product (where 3462 is the product ID): [product_table include="3462"]</p>
  
  <p>What code snippet would I need to place in my functions to grab the current product ID, and what corresponding text would go inside the quotes in the shortcode itself?</p>
  
  <p>Obviously, I'm very new to this and still learning, so I would appreciate your patience with me :-)</p>
  
  <p>Thanks!</p>