Core-shell-shell nanorods for controlled release of silver that can serve as a nanoheater for photothermal treatment on bacteria.