If you want to make your plugins or themes extensible, the best way to do it is to use WordPress packages API (hooks). This is when using PHP. What about when you are using JavaScript? To make your JavaScript project extensible in a similar way, this tutorial will show you how to use those hooks […] Source...