Skip to content

Instantly share code, notes, and snippets.

@wbcomdev
Created May 13, 2021 04:46
Show Gist options
  • Select an option

  • Save wbcomdev/59da535c7de45a7d211c77e854e6873c to your computer and use it in GitHub Desktop.

Select an option

Save wbcomdev/59da535c7de45a7d211c77e854e6873c to your computer and use it in GitHub Desktop.
/**
* Customize product data tabs.
*/
function wb_woo_custom_description_tab( $tabs ) {
$tabs['description']['callback'] = 'wb_woo_custom_description_tab_content'; // Custom description callback.
return $tabs;
}
/**
* Customize product data tab content.
*/
function wb_woo_custom_description_tab_content() {
echo '<h2>Custom Description</h2>';
echo '<p>Here\'s a custom description</p>';
}
add_filter( 'woocommerce_product_tabs', 'wb_woo_custom_description_tab', 98 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment