Created
July 3, 2025 05:26
-
-
Save jmabbas/55bb4083eead427c22bb4a6ce601d7d5 to your computer and use it in GitHub Desktop.
Electro - Product Description on summary
This file contains hidden or 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
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