Explain Files and Directory structure of wordpress?

Main Directories in WordPress

When you install WordPress, you’ll find these three key directories in the root folder:

1. wp-admin/

  • Purpose: Contains all the files and folders for the WordPress admin dashboard.
  • Includes:
    • Dashboard interface
    • Post editor
    • Menu management
    • Admin-specific scripts
  • Do Not Modify unless you’re working on WordPress core.

2. wp-content/

  • Purpose: This is where your content lives. Themes, plugins, and uploaded files are stored here.
  • Includes:
    • themes/ — contains all installed themes
    • plugins/ — all installed plugins
    • uploads/ — media files like images, videos, PDFs (organized by year/month)
    • languages/ — for localization/translation files

Safe to customize (especially themes and plugins).


3. wp-includes/

  • Purpose: Contains the core WordPress files — functions, classes, and built-in features.
  • Includes:
    • Functions and hooks
    • API interfaces
    • Script and style libraries

Do Not Modify — changes here may break your site or be lost during updates.

Important Files in WordPress Root Directory

File NamePurpose
index.phpMain entry file that loads the site
wp-config.phpContains database connection settings and site configuration
wp-settings.phpLoads settings and initializes WordPress
wp-load.phpLoads the WordPress environment
.htaccessApache server rules (used for permalinks, redirects)
license.txtWordPress license (GPL)
readme.htmlInfo about the installed version of WordPress

By admin

Leave a Reply

Your email address will not be published. Required fields are marked *