Learning through association of a behavior with rewards and punishment. We tend to do more of the things that make us feel good rather than feel bad.
See also:
- Atomic Habits which talks about designing for establishing good habits and stopping bad habits as a way of piggybacking off of operant conditioning (although I don’t think the term is ever mentioned in the book).