Title: WooCommerce &amp; Functions.php
Last modified: March 27, 2020

---

# WooCommerce & Functions.php

 *  [Bryan](https://wordpress.org/support/users/bgillet/)
 * (@bgillet)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/woocommerce-functions-php/)
 * I’m trying to add a link to all WooCommerce Product Pages utilizing the SKU as
   part of the link.
 * Example of what I need:
 * This is how I am able to show the SKU:
 *     ```
       add_action( 'woocommerce_single_product_summary', 'dev_designs_show_sku', 5 );
       function dev_designs_show_sku(){
           global $product;
           echo 'View Link ' . $product->get_sku();
       }
       ```
   
 * I’m stuck and I think I need is something like this but like I said I’m just 
   stuck any help is appreciated:
 *     ```
       add_action( 'woocommerce_single_product_summary', 'dev_designs_show_sku', 5 );
       function dev_designs_show_sku(){
           global $product;
           echo <a>get_sku();>'View Link '</a>
       }
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwoocommerce-functions-php%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [6 years, 2 months ago](https://wordpress.org/support/topic/woocommerce-functions-php/#post-12592487)
 * I recommend asking at [https://wordpress.org/support/plugin/woocommerce/#new-post](https://wordpress.org/support/plugin/woocommerce/#new-post)
   so the plugin’s developers and support community can help you with this.

Viewing 1 replies (of 1 total)

The topic ‘WooCommerce & Functions.php’ is closed to new replies.

## Tags

 * [functions](https://wordpress.org/support/topic-tag/functions/)
 * [linking](https://wordpress.org/support/topic-tag/linking/)
 * [sku](https://wordpress.org/support/topic-tag/sku/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/woocommerce-functions-php/#post-12592487)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
