How to customize code in WordPress using a mini plugin

The greatness of WordPress comes from its highly customizable nature – almost everything can be tweaked, edited, adjusted or replaced without the need to directly dive into the core files and modify existing code.
Mini-plugins are very useful at applying small tweaks or little bits of code on the site.