includes/functions.inc.php would seem to be a sensible place.
A config file is certainly not the right place to define code, and whinging at other people when it causes things to break is not helpful.
adam.On 23/02/2016 21:08:15, Nagy Attila <tylla_at_memetic.org@tylla.hu> wrote:
OK. Then what's the recommended place of custom_rewrite_location() function?