Skip to content

Instantly share code, notes, and snippets.

@davidperezgar
Created October 18, 2016 11:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidperezgar/324e032415b1746d9771d5d57f11129e to your computer and use it in GitHub Desktop.
Save davidperezgar/324e032415b1746d9771d5d57f11129e to your computer and use it in GitHub Desktop.
Remove Short description and moves Description after title Woocommerce
//* Removes Short description and moves description tab to Short description location
//* Remove Short description Meta box
function remove_short_description() {
remove_meta_box( 'postexcerpt', 'product', 'normal');
}
add_action('add_meta_boxes', 'remove_short_description', 999);
//* Removes Short description from single product
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 );
function cmk_template_description() {
echo get_the_content();
}
add_action( 'woocommerce_single_product_summary', 'cmk_template_description', 20 );
//* Removes Description tab
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
function woo_remove_product_tabs( $tabs ) {
unset( $tabs['description'] ); // Remove the description tab
return $tabs;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment