A hack is a bit of code written to customize or extend the functionality of a software product. Older versions of WordPress used a hack-based extension system, but versions 1.2 and above of WordPress use a Plugin API with hooks for extensions.