public function post_template_routing($template_path)
    {
        $routes_file = \get_template_directory() . '/public/routes.php';
        
        if (\is_child_theme()) {
            $routes_file = \locate_template('public/routes.php');
        }

        if ('' !== $routes_file) {
            return $routes_file;
        }
        
        return $template_path;
    }