Change wp-includes content directory?

I have changed the “wp-content” directory using Better WP Security, but I was wondering how to change “wp-includes” directory?

Please respond as soon as possible. All help is appreciated. Thanks in advance!

  • aristath
    • Recruit

    @signed_up You should NOT change it.

    However, if you’re determined to hack WordPress core, you can try this:

    Login via SSH to your server, cd to your WordPress root folder and do the following:

    find /var/www -type f -exec sed -i 's/wp-includes/includes/g' {} ;

    Assuming your WordPress installation is on /var/www, this will look inside ALL your files, search for text matching ‘wp-includes’ and change that to ‘includes’.

    Then you can rename your wp-includes folder to includes.

    Be advised though that this is probably one of the surest ways to destroy any site so I will not accept any responsibility.

    Cheers,

    Ari.