Skip to content

Instantly share code, notes, and snippets.

@erikyo
Created January 13, 2018 17:29
Show Gist options
  • Save erikyo/bffdaa19bfc1848a82c0e19346d40b70 to your computer and use it in GitHub Desktop.
Save erikyo/bffdaa19bfc1848a82c0e19346d40b70 to your computer and use it in GitHub Desktop.
WOOCOMMERCE show sku for bundled products
// WOOCOMMERCE show sku for bundled products
add_action( 'woocommerce_bundled_item_details', 'show_bundled_sku', 16 );
function show_bundled_sku( $bundled_item, $product ) {
if ($bundled_item->product->sku) {
printf('<p class="sku"><span class="woocommerce-Sku sku">%s</span></p>',$bundled_item->product->sku) ;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment