title: Get product permalink by product name in Woocommerce
body: <p>I am trying to get Woocommerce product permalink by given product name. I know I can get permalink by given product ID like this:</p>
  
  <pre><code>$url = get_permalink( $product_id );
  </code></pre>
  
  <p>But I can not find any code to get it by product name. I tried this:</p>
  
  <pre><code>$url = get_permalink( 'title' );
  </code></pre>
  
  <p>That does not work. Please help.</p>