How to change wordpress folder name?

themes to templates
plugins to addons
uploads to files

  • aristath
    • Recruit

    Hello there @Raja, I hope you're well today!

    This is not recommended... However you can do it like this:
    Step 1: Rename your folders to what you mentioned above
    Step 2: Add these lines to your wp-config.php file:

    define( 'WP_PLUGIN_URL', WP_PLUGIN_URL . '/addons' );
    define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/addons' );

    Then, create a new php file in wp-content/mu-plugins and add paste this in that file:

    // Add the templates folder for themes
    register_theme_directory( WP_CONTENT_DIR . '/templates' );

    As for changing your uploads folder, you can follow the instructions from this post:

    I hope that helps!


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.