Created
October 18, 2016 11:28
-
-
Save davidperezgar/324e032415b1746d9771d5d57f11129e to your computer and use it in GitHub Desktop.
Remove Short description and moves Description after title Woocommerce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* 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