The Posts > All Posts bulk edit functionality does allow editing some fields (similar to the bulk edit with Products), however those fields (Category, Author, etc) do not really apply to Orders. Which fields there were you trying to edit?
On Orders, the main thing that would make sense to bulk edit would be the statuses, which is why they are included in the bulk action dropdown.
]]>Thank you for the clarification here. Even if you somehow added an “Edit” option in that bulk actions dropdown, the functionality would need to be written to actually work with and update those specific custom fields in the database. I would recommend reaching out to the developers of that custom fields plugin to see if they might have any other advice for working with the custom fields you’ve added.
Aside from that, this would require quite a bit of custom code (not just a short code snippet like we would be able to provide here in the forums). If you need assistance with coding or custom development, we recommend reaching out to a developer from one of the services at https://woocommerce.com/customizations/
]]>But, if I create a custom post type it has general Bulk Edit option by default. So, I assume, that in orders (and they are custom post type too) it is just disabled somehow. And I don’t think that there is a lot of coding needed, just to find where WooCommerce developers disabled it, or didn’t enabled on orders custom post type registration.
]]>It looks like the Edit is removed from the dropdown in the define_bulk_actions
method here:
https://github.com/woocommerce/woocommerce/blob/ab4a46e32e338cbf33094ab26144744a021a21a9/includes/admin/list-tables/class-wc-admin-list-table-orders.php#L140
Then it looks like there’s a filter for customizing the actions here:
https://github.com/woocommerce/woocommerce/blob/ab4a46e32e338cbf33094ab26144744a021a21a9/includes/admin/list-tables/abstract-class-wc-admin-list-table.php#L50
I wrote a little snippet to add the Edit back in, but I’m not sure if that’s the best way of doing it:
function my_custom_bulk_actions( $actions ) {
$actions['edit'] = __( 'Edit', 'woocommerce' );
return $actions;
}
add_filter( 'bulk_actions-edit-shop_order', 'my_custom_bulk_actions', 99, 2 );
It did bring back the Edit option though:
Link to image: https://d.pr/i/CjaBrS