Description of WordPress program file

 Robins
 Robins
Robins
one thousand six hundred and forty-seven
article
six thousand nine hundred and thirty-seven
comment
April 30, 2014 10:37:33 twenty-eight 5.6K twenty

 

WordPress程序文件说明

WordPress

It is necessary for developers to understand the functions of WordPress program files,

WordPress program root directory

1. Index. PHP: WordPress core index file, that is, blog output file.

2. License.txt: WordPress GPL license file.

3. My hacks. PHP: defines an appender to handle before blog output. This file is not available in the default installation, but if it exists, it will be referenced by the administration page.

Readme. HTML: introduction to WordPress installation.

5. Wp-atom.php: output atom information and aggregate content.

⒍ wp-blog-header.php: define the content of blog page display according to blog parameters.

7.wp-cron.php

8. Wp-comments-post.php: receive comments and add them to the database.

9. Wp-commentsrss2. PHP: RSS 2 information aggregation content used to generate log comments.

10. Wp-config-sample.php: sample configuration file for connecting WordPress to MySQL database.

11. Wp-config.php: This is the configuration file that actually connects WordPress to MySQL database. Although it is not included in the default installation, because WordPress needs this file to run, users need to edit this file to change the relevant settings.

12. Wp-feed.php: defines the feed type according to the request and returns the feed request file.

13. Wp-links-opml.php: generate a list of links in OPML format (added through the WordPress administration menu).

14. Wp-login.php: defines the login page of registered users.

15. Wp-mail.php: used to get blog posts submitted by email. The URL of this file is usually added to the cron task so that cron periodically retrieves the file and receives the mail log.

16. Wp-pass.php: audit the password of password protected articles and display the protected articles.

17. Wp-rdf.php: generate 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 and aggregate content.

20. Wp-rss2.php: generate RSS2 information aggregation content.

21. Wp-settings.php: run the routine before execution, including checking whether the installation is correct, using auxiliary functions, applying user plug-ins, initializing the execution timer, etc.

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

23. WP. PHP: a simple template for displaying blog logs. 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 network management interface.

WP admin directory

1. WP admin / admin.php: the core file of management file. It is used to connect database, integrate dynamic menu data, display non core control page, etc.

2.wp-admin/admin-db.php

3. WP admin / admin-footer.php: define the footers of all administrative console.

4. WP admin / Admin functions.php: defines a variety of functions used by the management console.

5. Wp-admin/admin-header.php: defines the upper part of the management console, including the menu-header.php file of menu logic.

6. WP admin / bookmarklet.php: define the pop-up page when using the bookmark function. Use the default edit-form.php file when writing logs.

7. WP admin / categories. PHP: defines the category management of the management 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 management page. Reference: manage – comments

11. WP admin / edit-form-advanced.php: define the advanced editing form management of log of management page, including post.php. Reference: write – Write Post – advanced

12. WP admin / edit-form.php: define the log management of the management page, including post.php. Reference: write – Write Post

13. WP admin / edit-form-comment.php: edit specific log comments.

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

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

16. WP admin / edit-page-form.php: defines the page editing of the management 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 management module page. Reference: manage – pages

18.wp-admin/execute-pings.php

19.wp-admin/import.php

20. WP admin / index. PHP: the default management page. The corresponding page is displayed according to the user's request.

21.wp-admin/inline-uploading.php

22. WP admin / install-helper.php: define database maintenance functions, including popular in plugins may_ create_ Table() and may_ 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 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 / link parse opml.php: 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 / modeling. PHP: defines the comment auditing function.

34. WP admin / options.php: used to change all settings after upgrade.

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

40. Wp-admin/options-reading.php: sets how to send web site information to reader browsers or other applications. Reference: options – reading

41. WP admin / options writing.php: management log writing 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.

46.wp-admin/profile-update.php

47. WP admin / profile.php: manage profile or configuration.

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 server writable files.

51. WP admin / theme editor.php: edit files in a specific topic.

52. WP admin / themes. PHP: managing topics.

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

60.wp-admin/xfn.js

WP includes directory

1.wp-includes/cache.php

2.wp-includes/capabilities.php

3. WP includes / class - Ⅸ r.php: incutioxml-rpc library. XML RPC support functions are included.

4. Wp-includes/classes.php: includes the basic classes, such as the core article extraction mechanism WP_ Query and rewrite management WP_ Rewrite。

5. WP includes / class-pop3.php: includes classes that support pop mailbox. It can be used by wp-mail.php.

6. WP includes / class Snoopy. PHP: Snoopy is a PHP class, which is used to imitate the function of 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 correctly format text with a specific character set.

12. Wp-includes/functions-post.php: defines the functions of managing logs, querying user permissions, extracting and writing comments in the database.

13. Wp-includes/functions.php: contains many important support functions, which is the largest file in WordPress and has 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 HTML in logs or comments.

16. Wp-includes/links.php: used to manage and use the linking 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

⒛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 topic functions related to the author or reviewer of the blog.

23. Wp-includes/template-functions-category.php: contains topic functions related to categories.

24. Wp-includes/template-functions-comment.php: contains topic functions related to comments.

25. Wp-includes/template-functions-general.php: contains general topic functions.

26. Wp-includes/template-functions-links.php: contains topic functions related to links.

27. Wp-includes/template-functions-post.php: contains log related topic functions.

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 functions for connecting to MySQL database.

33. WP includes / wp-l10n.php: provides functions that support multilingual versions.

 weinxin
Copyright notice
Please indicate the source of the original article