Skip to content

Instantly share code, notes, and snippets.

@jmabbas
Created July 3, 2025 05:26
Show Gist options
  • Save jmabbas/55bb4083eead427c22bb4a6ce601d7d5 to your computer and use it in GitHub Desktop.
Save jmabbas/55bb4083eead427c22bb4a6ce601d7d5 to your computer and use it in GitHub Desktop.
Electro - Product Description on summary
function electro_product_description_tab() {}
if ( ! function_exists( 'el_child_product_description' ) ) {
function el_child_product_description() {
echo '<div class="electro-description clearfix">';
wc_get_template( 'single-product/tabs/description.php' );
echo '</div>';
}
}
if ( ! function_exists( 'el_child_init' ) ) {
function el_child_init() {
add_action( 'woocommerce_single_product_summary', 'el_child_product_description', 20 );
}
}
add_action( 'init', 'el_child_init', 20 );
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