Replaced hookRegisterCpRoutes() deprecated method by registerCpRoutes()