This question already has an answer here:

how can we rename the wp-includes folder.We don't want folder name wp-includes displayed in source code

marked as duplicate by Milo, Rarst Apr 17 '16 at 16:18

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


The name of wp-includes folder is hardcoded in multiple places on WordPress core, as well as WPINC constant which isn't conditional and can't be changed.

Renaming it would take creating and maintaining a fork of WordPress core, which is impractical.

Your best bet is just keeping it out of front end, for example by redefining any assets loaded from it to different URLs.

Not the answer you're looking for? Browse other questions tagged or ask your own question.