After installing WordPress on your website or localhost environment its very important to know WordPress folder and file structure first and start playing around with WordPress folders and php files. Once you completely understand WordPress directory or folders and file structure and core files then you can easily play around and what you most need to know about WordPress.
WordPress Directory, Folders and file structure:
WordPress directory comes with 3 directories/folders and core php files after extracting:
After downloading WordPress from wordpress.org and extracting WordPress downloaded folder you will see the set of file structure of WordPress. WordPress comes with three directories by default – wp-admin, wp-content, and wp-includes.
What are WordPress Core folders and files:
Core files are all files in the wp-admin and wp-includes directories and the majority of the files in the root WordPress directory. The wp-content directory holds all of your custom files, including themes, plugins, and media. This directory contains the code that controls content manipulation and presentation in WordPress. WordPress HTML content, such as pages and posts, is stored in the MySQL database along with metadata such as tag and category structures.
Which folder holds themes and plugins and media and content in WordPress:
The wp-content folder holds and it responsible for all your themes files, plugins folders, media uploads and content of your website. If you view source code of WordPress, all the content populated is from wp-content folder only.
Related WordPress Articles Coverage:
Don not Modify WordPress Core Folder Structure and Files:
The wp-admin, wp-includes, and root directory core WordPress files should never be edited, but the next section covers some core root directory files that can be modified as part of advanced configuration. Don’t hack the core even if you can!
Do not modify WordPress core files without better understanding of WordPress folders and files structure. Modifying and making any changes in the core WordPress files can result in an unstable website. An inoffensive but badly executed change to the Dashboard or login functions, for example, will leave you with a WordPress installation that can’t be managed. Core changes also make it very difficult to update WordPress because all changes made are overwritten when the updated version of WordPress is installed.
Critical fixes to the WordPress core are only made in the current branch, so if you are forced to update WordPress to pick up a security fix, you are going to have to re-integrate any core changes you have made and hope they don’t conflict or battle with the changes you want.
Maintaining the integrity and stability and solidity of code your WordPress installation over time is much simpler when you are not changing files in the core, you can extend WordPress functionality by writing plugins which adds more features for your website and its simple to develop a WordPress plugin.