WordPress entry basics: a detailed introduction to the WordPress file system structure

root directory
|
|

wp-admin — wp-content — wp-includes
|                    |        |_________________________________________
|                    |________________________                                                         |
|                                                                     |                                                        |

css — images — includes — js — maint       languages — plugins — themes         images — js — pomo — Text — theme-compat
|
Diff
|
Engine — Renderer


Root directory

1.index.php: WordPress core index file, that is, the blog output file.

2.license.txt: WordPress GPL license file.

3.my-hacks.php: Defines the appender that is processed before the blog output. This file is not present in a default installation, but if it exists, it will be referenced by the admin page.

4.readme.html: WordPress installation introduction.

5.wp-atom.php: Output Atom information aggregation content.

6.wp-blog-header.php: Define the content displayed on the blog page according to the blog parameters.

7.wp-cron.php

8.wp-comments-post.php: Receive comments and add them to the database.

9.wp-commentsrss2.php: RSS2 information aggregation content used to generate log comments.

10.wp-config-sample.php: A sample configuration file for connecting WordPress to a MySQL database.

11.wp-config.php: This is the configuration file that actually connects WordPress to the MySQL database. It is not included in the default installation, but since WordPress requires this file to run, users need to edit this file to change the relevant settings.

12.wp-feed.php: Define the feed type according to the request and it returns the feed request file.

13.wp-links-opml.php: Generates a list of links (added via the WordPress admin menu) in OPML format.

14.wp-login.php: Define the login page for registered users.

15.wp-mail.php: Used to obtain blog posts submitted by mail. The URL to this file is usually added to the cron job so that cron will periodically retrieve the file and receive mail logs.

16.wp-pass.php: Audit the password of password protected articles and display protected articles.

17.wp-rdf.php: Generate RDF information aggregation content.

18.wp-register.php: Allows new users to register usernames through the online form.

19.wp-rss.php: Generate RSS information aggregation content.

20.wp-rss2.php: Generate RSS2 information aggregation content.

21.wp-settings.php: Runs pre-execution routines, including checking for proper installation, using helper functions, applying user plugins, initializing execution timers, and more.

22.wp-trackback.php: handles trackback requests.

23.wp.php: A simple template for displaying blog logs. Nothing magical, but includes part of the index.php content.

24.xmlrpc.php: handles xmlrpc requests. Users can publish articles without going through the built-in web management interface.

wp-admin

1.wp-admin/admin.php: The core file for managing files. Used to connect to the database, integrate dynamic menu data, display non-core control pages, etc.

2.wp-admin/admin-db.php

3.wp-admin/admin-footer.php: Defines the footer of all admin consoles.

4.wp-admin/admin-functions.php: defines various functions used by the admin console. 5.wp-admin/admin-header.php: Defines the upper part of the management console, including the menu-header.php file of the menu logic.

6.wp-admin/bookmarklet.php: Define the pop-up page when using the bookmark function. The default edit-form.php file is used when writing logs.

7.wp-admin/categories.php: Define the category management of the admin page. Reference: Manage – Categories

8.wp-admin/cat-js.php

9.wp-admin/edit.php: Define the log management of the management page. Reference: Manage – Posts

10.wp-admin/edit-comments.php: Define the comment management of the admin page. Reference: Manage – Comments

11.wp-admin/edit-form-advanced.php: Define the log advanced editing form management of the management page, including post.php. Reference: Write – Write Post – Advanced

12.wp-admin/edit-form.php: Define the simple edit form management of the log of the management page, including post.php. Reference: Write – Write Post

13.wp-admin/edit-form-comment.php: Edit a specific log comment.

14.wp-admin/edit-form-ajax-cat.php

15.wp-admin/edit-link-form.php

16.wp-admin/edit-page-form.php: Define the page editing of the admin module page, including post.php and page-new.php. Reference: Write – Write Page

17.wp-admin/edit-pages.php: Define the page management of the admin module page. Reference: Manage – Pages

18.wp-admin/execute-pings.php

19.wp-admin/import.php

20.wp-admin/index.php: Default admin page. Display the corresponding page according to the user request.

21.wp-admin/inline-uploading.php

22.wp-admin/install-helper.php: Define database maintenance functions, including popular-in-plugins maybe_create_table() and maybe_add_column().

23.wp-admin/install.php: Install WordPress.

24.wp-admin/link-add.php: link add. Reference: Links – Add Link

25.wp-admin/link-categories.php: link category management. Reference: Links – Link Categories

26.wp-admin/link-import.php: import link. Reference: Links – Import Links

27.wp-admin/link-manager.php: link management. Reference: Links – Manage Links

28.wp-admin/link-parse-opml.ph: Used to parse OPML files when importing links.

29.wp-admin/list-manipulation.js

30.wp-admin/list-manipulation.php

31.wp-admin/menu-header.php: used to display the menu in the management interface.

32.wp-admin/menu.php: defines the default management menu structure.

33.wp-admin/moderation.php: defines the comment moderation function.

34.wp-admin/options.php: After upgrading, used to change all settings.

35.wp-admin/options-discussion.php: Manage comments and trackback related options. Reference: Options – Discussion

36.wp-admin/options-general.php: Manage basic configuration options. Reference: Options – General

37.wp-admin/options-head.php

38.wp-admin/options-misc.php: Set file upload, link tracking, custom "hacks" and other related options. Reference: Options – Miscellaneous

39.wp-admin/options-permalink.php: Manage permalink options. Reference: Options – Permalinks

40.wp-admin/options-reading.php: Set how to send website information to reader browsers or other applications. Reference: Options – Reading

41.wp-admin/options-writing.php: Manage log writing interface. Reference: Options - Writing

42.wp-admin/page-new.php: Create a new page.

43.wp-admin/plugin-editor.php: Edit the plugin file.

44.wp-admin/plugins.php: Manage plugins.

45.wp-admin/post.php: Create a new log.

46.wp-admin/profile-update.php

47.wp-admin/profile.php: Manage profiles or profiles.

48.wp-admin/setup-config.php: Used to create the wp-config.php file during installation.

49.wp-admin/sidebar.php

50.wp-admin/templates.php: Edit the server-writable file.

51.wp-admin/theme-editor.php: Edit files in a specific theme.

52.wp-admin/themes.php: Manage themes.

53.wp-admin/update-links.php

54.wp-admin/upgrade-functions.php: defines the version upgrade function.

55.wp-admin/upgrade-schema.php: defines the default table structure and options used in the upgrade.

56.wp-admin/upgrade.php: Version upgrade.

57.wp-admin/user-edit.php: Edit user.

58.wp-admin/users.php: Manage users.

59.wp-admin/wp-admin.css: defines the default style sheet for the management console.

60.wp-admin/xfn.js

wp-includes

1.wp-includes/cache.php

2.wp-includes/capabilities.php

3.wp-includes/class-IXR.php: Incutio XML-RPC library. Includes XML RPC support functions. Powered by http://scripts.incutio.com/xmlrpc/.

4.wp-includes/classes.php: Includes basic classes, such as core article extraction mechanism WP_Query and rewrite management WP_Rewrite.

5.wp-includes/class-pop3.php: Includes classes that support the use of POP mailboxes. Available for wp-mail.php.

6.wp-includes/class-snoopy.php: Snoopy is a PHP class used to imitate the functionality of a web browser, it can automatically complete the task of retrieving web pages and sending forms.

7.wp-includes/comment-functions.php

8.wp-includes/default-filters.php

9.wp-includes/feed-functions.php

10.wp-includes/functions-compat.php: The function file used in the new version of PHP to support the old version of PHP.

11.wp-includes/functions-formatting.php: Used to clean up XHTML and properly format text with a specific character set.

12.wp-includes/functions-post.php: Defines functions such as managing logs in the database, querying user permissions, extracting and writing comments.

13.wp-includes/functions.php: Contains many important supporting functions, it is the largest file in WordPress with almost twice the number of functions as the second largest file.

14.wp-includes/gettext.php: PHP-gettext GPL translation library component.

15.wp-includes/kses.php: used to render and filter the HTML in the log or comment.

16.wp-includes/links.php: used to manage and use the link function of WordPress.

17.wp-includes/locale.php: Used to replace the default week and month values.

18.wp-includes/pluggable-functions.php

19.wp-includes/registration-functions.php

20.wp-includes/rss-functions.php

21.wp-includes/streams.php: Defines classes that wrap file streams and character streams.

22.wp-includes/template-functions-author.php: Contains the theme functions related to the log author or commenter.

23.wp-includes/template-functions-category.php: Contains theme functions related to categories.

24.wp-includes/template-functions-comment.php: Contains theme functions related to comments.

25.wp-includes/template-functions-general.php: Contains general theme functions.

26.wp-includes/template-functions-links.php: Contains theme functions related to links.

27.wp-includes/template-functions-post.php: Contains the theme functions related to the log.

28.wp-includes/template-functions.php: Contains all the above "template-" files.

29.wp-includes/template-loader.php

30.wp-includes/vars.php: Used to set miscellaneous variables.

31.wp-includes/version.php: used to set the current version of WordPress.

32.wp-includes/wp-db.php: Contains the functions used to connect to the MySQL database.

33.wp-includes/wp-l10n.php: Provides functions to support multi-language versions.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324770803&siteId=291194637