Tour of The Core
The core does not include your custom files for plugins, themes, database settings, the.htaccess file, and so on. The core also does not include any media you have uploaded to WordPress. Basically, any files added to WordPress after installation are considered outside of the core.
In short, the core contains several major function types:
Inline DocumentationNearly all WordPress core files contain inline documentation in PHPDoc form. PHPDoc is a standardized method of describing a function’s usage in PHP comment form. This means each function is explained in detail directly before the function in a comment block. The following is the defined template for documenting a WordPress function:
/** * Short Description * * Long Description * * @package WordPress * @since version * * @param type $varname Description * @return type Description */ This is amazingly helpful in understanding how functions work. The comment includes a short and long description. It also includes the version of WordPress it was added in. This helps distinguish new functions added to WordPress when a new version is released.
Exploring the Core
All of the files listed in the section that follows are located in the /wp‐includes directory of WordPress. Functions.php The functions.php file contains the main WordPress API functions. Plugins, themes, and the WordPress core all use these functions: |
Plugin.php
The plugin.php file contains the WordPress Plugin API functions, including:
The user.php fle contains the WordPress User API functions, including:
The post.php fle contains the functions used in the post process of WordPress, including:
| ||||||||||||
Comments
Post a Comment