I've been attempting to hide certain columns within the administrative section of Woocommerce, but have had no success with the code I'm using. I'm currently stuck and my question is:
Is there a way for me to conceal specific column names in the admin area (such as line_cost and line_tax) of order items?
add_action( 'admin_head', 'admin_head_shop_order_inline_Cust' );
function admin_head_shop_order_inline_css_S() {
global $pagenow, $typenow;
// Targeting WooCommerce admin single orders
if ( in_array( $pagenow, ['post.php', 'post-new.php'] ) && $typenow === 'shop_order' ) :
?><style>
table.woocommerce_order_items .item_cost .view {display:none;}
table.woocommerce_order_items .item_cost .sortable {display:none;}
</style><?php
endif;
}