// Remove unwanted tabs and sections on single product page
add_filter( 'woocommerce_product_tabs', 'custom_remove_product_tabs', 98 );
function custom_remove_product_tabs( $tabs ) {
    // Remove Additional Information tab
    if ( isset( $tabs['additional_information'] ) ) unset( $tabs['additional_information'] );

    // Remove Reviews tab
    if ( isset( $tabs['reviews'] ) ) unset( $tabs['reviews'] );

    // Remove ShopEngine / ShopLentor custom tabs if present
    if ( isset( $tabs['store_policies'] ) ) unset( $tabs['store_policies'] );
    if ( isset( $tabs['inquiries'] ) ) unset( $tabs['inquiries'] );
    if ( isset( $tabs['ask_a_question'] ) ) unset( $tabs['ask_a_question'] );

    return $tabs;
}

// Optionally remove other default sections if added by plugins (ShopEngine / ShopLentor)
remove_action('woocommerce_single_product_summary','shopengine_single_product_extra', 25 );
remove_action('woocommerce_single_product_summary','shoplentor_single_product_extra', 25 );
