Remove Bundle Items on order details page
-
Hi All, in a previus topic a user asked how to remove the item bundle name in the admin order detail page. I was wanting to do the opposite and remove the Bundle Items displayed after the bundle name. The following code works to disable the Bundle name, however can someone please provide me with the code to disable the bundle items in the second paragraph. see screen shot of order details page..I require the highlighted text to not be displayed. https://woodco.com.au/wp-content/uploads/2022/06/Capture.png and here is the code which works to disable the bundle name not the bundle items which i require:
add_filter( 'woocommerce_order_get_items', 'woosb_exclude_bundles_from_order', 10, 1 ); function woosb_exclude_bundles_from_order( $items ) { foreach ( $items as $key => $item ) { if ( $item->meta_exists( '_woosb_ids' ) ) { unset( $items[ $key ] ); } } return $items; } Regards,
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Remove Bundle Items on order details page’ is closed to new replies.