The function realization of each directory of WordPress

Source: Internet
Author: User
Tags install wordpress


root directory


1.index.php:wordpress core index file, which is the blog output file.

2.license.txt:wordpress GPL license file. Defines an append program that is processed before the blog output. The default installation does not have this file, but if it does, it will be managed by the page reference.

4.readme.html:wordpress installation Introduction.

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

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


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

9.wp-commentsrss2.php: The aggregated content of RSS2 information used to generate log comments.

10.wp-config-sample.php: A sample configuration file that connects WordPress to the MySQL database.

11.wp-config.php: This is the configuration file that really connects WordPress to the MySQL database. Although it is not included in the default installation, the file is required for WordPress to run, so the user needs to edit the file to change the relevant settings.

12.wp-feed.php: Defines the feed type as requested and returns the feed request file.

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

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

15.wp-mail.php: Used to get posts submitted via mail. The URL of this file is usually added to the cron task, so cron periodically retrieves the file and receives the mail log.

16.wp-pass.php: Review passwords for password-protected articles and display protected articles.

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

18.wp-register.php: Allows new users to register user names through online forms.

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

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

21.wp-settings.php: Run the pre-execution routine, including checking that the installation is correct, using auxiliary functions, applying the user plug-in, initializing the execution timer, and so on.

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

23.wp.php: Displays a simple template for the blog log. There's nothing magical about it, but it includes some index.php content.

24.xmlrpc.php: Handles XMLRPC requests. Users can publish articles without the built-in Web management interface.




1.wp-admin/admin.php: Manages the file's core file. Used to connect databases, integrate dynamic menu data, display non-core control pages, and more.


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

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

6.wp-admin/bookmarklet.php: Defines pop-up pages when using the bookmark feature. Use the default edit-form.php file when composing logs.

7.wp-admin/categories.php: Defines category management for management pages. Reference: Manage–categories


9.wp-admin/edit.php: Defines the management page's log management. Reference: Manage–posts

10.wp-admin/edit-comments.php: Define comment Management for the admin page. Reference: Manage–comments

11.wp-admin/edit-form-advanced.php: Defines the log advanced editing form management for the Administration page, including post.php. Reference: Write–write post–advanced

12.wp-admin/edit-form.php: Defines the management page of the journal Simple Edit form management, including post.php. Reference: Write–write Post

13.wp-admin/edit-form-comment.php: Edit specific journal comments.



16.wp-admin/edit-page-form.php: Defines page edits for the Management module page, including post.php and page-new.php. Reference: Write–write Page

17.wp-admin/edit-pages.php: Defines page management for management module pages. Reference: Manage–pages



20.wp-admin/index.php: Default Administration page. The corresponding page is displayed according to the user request.


22.wp-admin/install-helper.php: Defines the 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 added. Reference: Links–add Link

25.wp-admin/link-categories.php: Link Classification 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/ Used to parse the OPML file when the link is imported.



31.wp-admin/menu-header.php: Used to display menus in the admin interface.

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

33.wp-admin/moderation.php: A comment audit function is defined.

34.wp-admin/options.php: After upgrade, use 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


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 permanent link options. Reference: Options–permalinks

40.wp-admin/options-reading.php: Set How to send website information to the reader's browser or other applications. Reference: Options–reading

41.wp-admin/options-writing.php: Manages the log authoring interface. Reference: Options–writing

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

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

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

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


47.wp-admin/profile.php: Manage personal data or configuration.

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


50.wp-admin/templates.php: Edit Server Writable file.

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

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


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 administration console.





Wp-includes Directory



3.wp-includes/class-ixr.php:incutio XML-RPC Library. Includes the XML RPC support functions.

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

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

6.wp-includes/class-snoopy.php:snoopy is a PHP class that mimics the functionality of a Web browser, which automates the task of retrieving pages and sending forms.




10.wp-includes/functions-compat.php: This is the new version of PHP used to support the old version of PHP function files.

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

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

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

14.wp-includes/gettext.php:php-gettext part of the GPL translation library.

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

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

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




21.wp-includes/streams.php: A class that defines the wrapper file stream and character stream.

22.wp-includes/template-functions-author.php: Contains topic functions that are related to the author or reviewer of the log.

23.wp-includes/template-functions-category.php: Contains the topic functions related to the category.

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

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

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

27.wp-includes/template-functions-post.php: Contains the topic functions associated with the log.

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


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

31.wp-includes/version.php: Used to set the currently used 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 that support multi-language versions.

The function realization of each directory of WordPress

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.