Skip to content

Instantly share code, notes, and snippets.

@imran-khan1
Last active July 3, 2019 06:40
Show Gist options
  • Save imran-khan1/7d01877633f5c0cc387c350525bc615b to your computer and use it in GitHub Desktop.
Save imran-khan1/7d01877633f5c0cc387c350525bc615b to your computer and use it in GitHub Desktop.
<?php
//Frontend Product detail page
function display_manufacturer()
{
global $product;
$id = $product->id;
$manufacturer = get_post_meta( $id, 'meta_box_manufacturer', true );
echo "<p><b>Manufacturer:</b> $manufacturer</p>";
}
add_action('woocommerce_single_product_summary', 'display_manufacturer', 15 );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment