Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Tilføj SKU fra WooCommerce på kategorisider
/* WooCommerce - add SKU on cat pages */
add_action( 'woocommerce_after_shop_loop_item_title', 'shop_sku', 5 );
function shop_sku(){
global $product;
echo '<span itemprop="productID" class="sku">' . __('SKU', 'woocommerce'). ': ' . $product->sku . '</span>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.