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 for filtering a flow of water 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 of the filtration delimited by the filtering element and located in a filtration chamber; - a wall element, allowing delimiting all or part of the filtration chamber, having an outlet for discharging filtered water communicating with a downstream area of the filtration located in the filtration chamber, the downstream area being separated from the upstream area by a portion of the water-permeable filtering element which has at least one filtering medium (FL1, FL2, FL3) and by a support structure 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 and the downstream area throughout the support structure; 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 via the bypass opening when a clogging state of the water-permeable portion generates an overpressure in the upstream area. - a filtering element for filtering a flow of water 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 of the filtration delimited by the filtering element and located in a filtration chamber; - a wall element, allowing delimiting all or part of the filtration chamber, having an outlet for discharging filtered water communicating with a downstream area of the filtration located in the filtration chamber, the downstream area being separated from the upstream area by a portion of the water-permeable filtering element which has at least one filtering medium (FL1, FL2, FL3) and by a support structure 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 and the downstream area throughout the support structure; - 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 and the downstream area throughout the support structure; 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 via the bypass opening when a clogging state of the water-permeable portion generates an overpressure in the upstream area.