What’s in the core files of wordpress?

In the previous articles we talked about core file of wordpress so the WordPress core is powered by a set of files that are part of the original WordPress software download and it is the set of files. Files are required “core” because these files need WordPress to function properly and perfectly.When you upgrade WordPress to a newer version then core files are expected to change only that time. Remember plugins, themes, database settings, the .htaccess file, and so on they does not include your custom files. Basically, Every files added to WordPress after installation of wordpress this is considered as the outside of the core it is not included in core files. IF we talked about the WordPress core files are primarily PHP files but contains also many files like CSS, JavaScript, XML, HTML, and image files these files help to complete a giant CMS. In these files has information about everything and how control the WordPress including how content pages are create or generated and how to display, how load the configured plugins and theme, know about all options of wordpress and settings, and much more. In core files contains several major function types:

Pages, posts, and custom content — Generating or Creating, retrieving, interacting and storing and with the majority of your controle the WordPress content.

Metadata — Each an everything from categories and tags to user-created taxonomies.

Themes — Themes Supporting functions for WordPress themes.

Actions, filters, and plugins — It is Framework for extending WordPress funcationality.

Users and authors — manage the users funcationality or managing access control to your site, it is the key to the security and enterprise.

WordPress core files use as reference for web developer

If you want to use WordPress core file as refrence, so first we need to understand what functions are working and which purpose this file is made of? Web Design company London use the core files. So Mostly WordPress core files have documentation in the form of code comments and you can read all comments easily. Usually, a code comments are displayed in the header of the file and in the comments it gives an overall summary of the core file you are seeing, what is the purpose of this file and which function is for what purpose. Now open the wp-login.php file located in the root directory or folder of WordPress CMS. You Noticed that the top of the file has a header comment in which describe the file’s function which are using in it:


* Here WordPress User Page


* It Handles the authentication, registering, other user handling,

* and resetting passwords, forgot password.


* */

Worpress all core files can be viewed easily using a text editor program dreamweaver, Notepad++ etc. It depends on your default program settings, first you open up your text editor and then open the file rather than just opening up the file directly its depend on you setting. WordPress also provide a full list of compatible text editors on the WordPress.org Codex at http://codex.wordpress.org/Glossary#Text_editor it is the link of wordpress compatible text editors list available.

Inline Documentation of WordPress

All WordPress core files contain inline documentation in PHPDoc form and it is a standardized method of describing a function’s usage in PHP comment form. It means every function is explained in detail in a comment block before the function describe. Below defined template for documenting a WordPress function:


* Here Short Description


* Here Long Description



These comments are very help full for understanding the function that how is doing work. In the comments includes a short and long description depend on the function functionality. The wordpress version also includes in it. When a new version is released this helps distinguish new functions added to WordPress. Existing parameters are also listed along with the parameter data type that parameters are available. Some parameters that required the data . For example, an ID parameter would likely use the int (integer) data type. The final piece of information is the return value. The return value data type is also listed. All new functions added to WordPress are documented using the preceding template. For more information on inline documentation in WordPress, see this Codex article: http://codex.wordpress.org/Inline_Documentation here inline documentation in WordPress are available.