Changed hookRegisterCpRoutes() deprecated method to registerCpRoutes()