Once you install the WordPress site, you will see the WordPress directory & file structure of the WordPress.

There are three main directories

  • wp-admin
  • wp-content
  • wp-includes

Apart from these directories, there are also some files available in the WordPress root directory.

  • index.php
  • license.txt
  • readme.html
  • wp-activate.php
  • wp-blog-header.php
  • wp-comments-post.php
  • wp-config-sample.php
  • wp-cron.php
  • wp-links-opml.php
  • wp-load.php
  • wp-login.php
  • wp-mail.php
  • wp-settings.php
  • wp-signup.php
  • wp-trackback.php
  • xmlrpc.php
  • .htaccess
  • wp-config.php

wp-admin

wp-admin folder used to control the WordPress dashboard. This folder contains all the files of WordPress installation. wp-admin folder is responsible for the WordPress site admin dashboard, establishing a database connection.

The admin.php file is the min file of this folder, which is used to perform all important functions like whether the user is having administrative rights or not. This folder is one of the core folder of WordPress.

Click : https://phpgurukul.com/wordpress-directory-and-file-structure/

wp-admin folder also contains some folder and files looks like:

wp-content

The wp-admin folder contains the plugins, themes, and other uploaded content. wp-admin folder looks like this:

wp-content -folder-structure

Whenever you will install a theme, the theme will store in the themes folder and the plugin will store in the plugins folder.

Whenever we will upload a picture it will store it in the uploads folder.

wp-includes

wp-includes contains all the necessary core files of WordPress. Which is necessary to run the website such as WordPress functions that control your posts, pages, widgets, and other features.

.htaccess

.htacces file is a server configuration file. It sued to manage the permalink structure, files of your WordPress site.

index.php

The index file loads and initializes all of your WordPress files when a page is requested by a user.

license.txt

license.txt file is the license file of the WordPress. The WordPress is a free software and is licensed under the GNU General Public License as published by the Free Software Foundation.

readme.html

This file contains the instructions to users.

wp-activate.php

This contains the following:

do_activate_header()

Function: Adds an action hook specific to the present page that fires on wp_head.

activate_wp_head

Fires before the location Activation page is loaded but on the wp_head action.

wpmu_activate_stylesheet()

Function: Loads styles specific to the present page.

activate_header

Action Hook: Fires before the location Activation page is loaded.

wp-blog-header.php

wp-blog-header.php file contains the http headers.

wp-config.php

This files contain the database configuration, including the databasename, database username, database username password and the host name.

Blog : https://phpgurukul.com/wordpress-com-vs-wordpress-org/

 

PHP Gurukul

Welcome to PHPGurukul. We are a web development team striving our best to provide you with an unusual experience with PHP. Some technologies never fade, and PHP is one of them. From the time it has been introduced, the demand for PHP Projects and PHP developers is growing since 1994. We are here to make your PHP journey more exciting and useful.

Website : https://phpgurukul.com