No products were found matching your selection.
function custom_make_all_orders_editable( $editable, $order ) { // Check if the current status of the order is one of the custom statuses if ( in_array( $order->get_status(), wc_get_order_statuses() ) ) { return true; } return $editable; } add_filter( 'wc_order_is_editable', 'custom_make_all_orders_editable', 10, 2 );