Morality is simply the attitude we adopt towards people we personally dislike.
Wilde suggests that our moral judgments are often disguised personal feelings. We tend to be strict, principled and outraged when the person in question already irritates us, and strangely forgiving when it is someone we like. What we call morality then becomes a respectable costume for dislike, a way of making a grudge sound like a principle. The line is a joke, but it carries a real suspicion.
It fits Wilde's wider view. He mocked Victorian respectability, in which public virtue often covered private hypocrisy, and as a leading figure of the aesthetic movement he resisted people who treated moral disapproval as the final word on art or character. The line comes from one of his comedies, spoken by a sharp-tongued character, so it is a provocation rather than a complete philosophy. Wilde was not saying morality is nothing, only that we should distrust how conveniently it lands on people we already dislike.
A practical use is a simple test. Say a coworker who annoys you shows up late to a meeting, and you think "that's so unprofessional." Ask whether you would think the same of a friend who did it. If not, you are probably judging the person rather than the act, and you can adjust your response.