How WordPress Works
So if you want to modify any of the default wordpress functionality you will need to use their hooking system of Actions and Filters. An Action is a procedure that modifies behaviour and a Filter is a function that modifies a passed variable and returns it.
The trick to making your code extendable by others is to allow them to change things using these Hooks. But first things first, let’s learn about the WordPress way.