An Article 4 direction is a planning tool. A council can use it to remove a permitted development right in a defined area, so that a change which would otherwise not need a planning application does need one. For HMOs, councils often use Article 4 to remove the right to change a dwellinghouse (use class C3) into a small HMO (use class C4) without planning permission. Article 4 does not replace an HMO licence: planning and licensing are separate.
A small HMO in planning terms is usually a property occupied by 3 to 6 people as an HMO. Properties with 7 or more occupiers are typically a 'sui generis' use and already need planning permission, with or without an Article 4 direction. An Article 4 direction is not a ban on HMOs; it means the council will assess a planning application against its policies.
Whether a direction applies, and from which date, is a local planning question. Check with the council's planning team as well as its licensing team.
Useful links
Guidance only, not legal advice. Only the council can decide whether a property needs a licence, and the law can change. Check the linked GOV.UK pages and your council.