Remove download section from single order page
-
Hi,
I’m trying to remove the woocommerce-order-downloads meta box from the order single page, but it’s not working.
To remove download box, I’m using this code :
add_action( 'add_meta_boxes', 'test_remove_downloads_meta_box', 999 ); function test_remove_downloads_meta_box(){ remove_meta_box( 'woocommerce-order-downloads', 'shop_order', 'normal' ); }
I just also want to specify, that it could be better if you could include a setting that can help us deactivate downloads and virtual product for our store, because even if we choose not to use them on the store guide, they are still active. That would be nice, otherwise, we use a bunch of functions to achieve this purpose which slows down website.
Thanks again.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Remove download section from single order page’ is closed to new replies.