[Order View] – Remove “PDF actions” from “Bulk actions” list
-
How to remove the “Print PDF Invoice” and “Print PDF Packing Slip” actions from the “Bulk actiona” list?
I tried unsuccessfully the following snippet:
function remove_pdf_bulk_actions($bulk_actions) {
unset($bulk_actions['generate_pdf_invoice']);
unset($bulk_actions['generate_pdf_packing_slip']);
return $bulk_actions;
}
add_filter('bulk_actions-edit-shop_order', 'remove_pdf_bulk_actions');Bonus question: how to remove the “Create PDF” section when editing an order without using the screen filters?
Thanks a lot for your insights.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.