The best way to do that is to use your own plugin. Sridhar Katakam has made a plugin that we can customize easily : https://github.com/srikat/my-custom-functionality Download, install and activate the plugin.
Did you like it? Take a second to support us on PayPal or Patreon!