I’ve recently been getting a lot of questions about how to add custom functionality in macros. The common answer is to implement your custom macro method. It’s a pretty simple and elegant solution. It’s also really well described in our documentation as to how to register your custom method. However, it’s not described how to correctly implement the body of your method. Of course it’s up to you as it’s your custom logic ... but there are few things you need to keep in mind in order to make sure your custom method does not introduce a security issue on your website and that it’s also reusable (100% compatible with macro engine features, usable for multilingual websites, etc.). There are 4 very common mistakes I see in implementations of custom macro methods that I’ll address in this article.