How to rename theme’s root directory? [duplicate]

Although @TheDeadMedic is technically correct and you can’t rename the themes folder. You CAN change some of the public facing urls.

For example, you can make a new folder assets/new-themes and add your CSS, and images there. Then make a theme include your styles.css (which can be just the header info) and anytime in your theme you want to refer to any image, css, or JS (public urls) set that to your new theme folder (or CDN if your fancy)

I’m not sure how changing the name of the directory would improve security as there are so many ways to find out if someone is using WP but that’s just one way to apply a similar effect.

UPDATE: Looks like you can use the hook register_theme_directory() to add an additional theme dir. (see link to duplicate question above)