A filter for a washing machine, in particular for a laundry washing machine , intended to be installed in an outlet of a liquid water circulation circuit in order to purify the waste water coming out of the machine and/or to be reintroduced into said circuit , the filter comprising: - a filtering element (EF) for filtering a flow of water (F1) loaded with solid particles in suspension including particles with a size smaller than 1 mm, the filtering element allowing separating at least one first fraction of solid particles on the side of an upstream area (Z1) of the filtration delimited by the filtering element and located in a filtration chamber (CH); - a wall element (W), allowing delimiting all or part of the filtration chamber (CH), having an outlet for discharging filtered water (F2) communicating with a downstream area (Z2) of the filtration located in the filtration chamber (CH), the downstream area (Z2) being separated from the upstream area (Z1) by a portion of the water-permeable filtering element which has at least one filtering medium (FL1, FL2, FL3) and by a support structure (S) to support all or part of said filtering medium (FL1, FL2, FL3); characterised in that the filter further has: - at least one valve (30a, 30b; 30; 31, 32), movable between a default position and an offset position, each valve in its default position sealing access to at least one so-called bypass opening (O, O') which forms a communication line between the upstream area (Z1) and the downstream area (Z2) throughout the support structure (S); and wherein each valve amongst the at least one valve (30a, 30b; 30; 31, 32) is configured to occupy its offset position to enable a water circulation towards the downstream area (Z2) via the bypass opening when a clogging state of the water-permeable portion generates an overpressure in the upstream area (Z1). - a filtering element (EF) for filtering a flow of water (F1) loaded with solid particles in suspension including particles with a size smaller than 1 mm, the filtering element allowing separating at least one first fraction of solid particles on the side of an upstream area (Z1) of the filtration delimited by the filtering element and located in a filtration chamber (CH); - a wall element (W), allowing delimiting all or part of the filtration chamber (CH), having an outlet for discharging filtered water (F2) communicating with a downstream area (Z2) of the filtration located in the filtration chamber (CH), the downstream area (Z2) being separated from the upstream area (Z1) by a portion of the water-permeable filtering element which has at least one filtering medium (FL1, FL2, FL3) and by a support structure (S) to support all or part of said filtering medium (FL1, FL2, FL3); characterised in that the filter further has: - at least one valve (30a, 30b; 30; 31, 32), movable between a default position and an offset position, each valve in its default position sealing access to at least one so-called bypass opening (O, O') which forms a communication line between the upstream area (Z1) and the downstream area (Z2) throughout the support structure (S); - at least one valve (30a, 30b; 30; 31, 32), movable between a default position and an offset position, each valve in its default position sealing access to at least one so-called bypass opening (O, O') which forms a communication line between the upstream area (Z1) and the downstream area (Z2) throughout the support structure (S); and wherein each valve amongst the at least one valve (30a, 30b; 30; 31, 32) is configured to occupy its offset position to enable a water circulation towards the downstream area (Z2) via the bypass opening when a clogging state of the water-permeable portion generates an overpressure in the upstream area (Z1). <EOS>