Note: The file descriptions on this page are for WordPress Version 2.x
Each file appearing in this list has been sorted into its directory of origin. A description of the purpose of the file and its possible dependencies appear after each.
- 1 WordPress Root
- 2 wp-admin
- 3 wp-admin/images
- 4 wp-admin/import
- 5 wp-content
- 6 wp-content/plugins
- 7 wp-content/themes
- 8 wp-content/themes/themedir
- 9 wp-content/themes/themedir/images
- 10 wp-includes
- 11 wp-includes/images
- 12 wp-includes/images/smilies
- 13 wp-includes/js
- 14 wp-includes/js/tinymce
- 15 wp-includes/languages
- 16 Description
- 17 Usage
- 18 Result
- Core WordPress index. This is the file that produces the blog output.
- The WordPress GPL license file.
- Contains supplemental routines that are processed before output is produced. This is not included in the default install, but is referenced by the administration page if available.
- Pre-install information about WordPress.
- Produces Atom syndication output.
- Decides what to display based on the parameters that are passed to the blog. Included from any page that wants to display WordPress content.
- Receives posted comments and adds them to the database.
- Produces RSS2 syndication output of post comments.
- A sample configuration file for connecting WordPress to your MySQL database.
- The actual configuration file used to connect WordPress to your MySQL database. This is not included in the default install, but must exist for successful operation of WordPress. You may need to edit this file to modify certain configuration settings.
- Decides the type of feed to produce based on a request and re-routes to the correct feed-producing file.
- Produces OPML output of Links that were added to the blog via the WordPress admin menu.
- The WordPress login page for registered users.
- Used for obtaining blog posts that were submitted via email. The URL of this file is usually added to a cron job so that it is regularly retrieved, so that new email posts are accepted.
- Accepts the password needed to view password-protected posts, then redirects back to the protected post.
- Produces RDF syndication output.
- Allows new users to register usernames in WordPress via an online form.
- Produces RSS syndication output.
- Produces RSS2 syndication output.
- Performs various pre-execution routines, including checking for correct installation, including auxiliary functions, applying user plugins, initializing execution timers, etc.
- Handles incoming trackback requests.
- A very simple template for displaying blog posts. Does not include a lot of the fancy but fragile features of index.php.
- Handles incoming xmlrpc commands. Among other things, this allows posting without using the built-in web-based administrative interface.
- The core of the admin files. Connects to the database, integrates the dynamic menu data, displays non-core console (dashboard) pages, etc.
- Contains the bottom of the admin console. Included from each of the console pages.
- Contains various functions used by the admin console.
- Contains the top half of the admin console. Includes menu-header.php for menu logic.
- The pop-up page that is displayed when using the bookmarklet. Uses the default edit-form.php page for post input.
- Admin console page for category management. See: Manage - Categories
- Admin console for post management. See: Manage - Posts
- Admin console page for comment management. See: Manage - Comments
- Admin console page for the advanced post editing form. Included from post.php. See: Write - Write Post - Advanced
- Admin console page for the simple post editing form. Included from post.php. See: Write - Write Post
- Edits a specific post comment.
- Admin console page for editing pages. Included from post.php and page-new.php. See: Write - Write Page
- Admin console for page management. See: Manage - Pages
- The administrative default page. Redirects to an appropriate page based on user access.
- A set of functions for database maintenance, including the popular-in-plugins maybe_create_table() and maybe_add_column().
- Installs WordPress.
- Admin console page to add links. See: Links - Add Link
- Admin console page for link category management. See: Links - Link Categories
- Admin console page used to import links. See: Links - Import Links
- Admin console page for link management. See: Links - Manage Links
- Contains functions used to parse an OPML file when importing links.
- The file used to display the menu in the admin interface.
- The default admin menu structure.
- Contains functions related to comments moderation.
- Admin console file that can be used to change every settings in one update.
- Admin console page to manage options regarding comments and trackbacks. See: Options - Discussion
- Admin console page to manage options regarding basic configuartion settings. See: Options - General
- Admin console page to manage options regarding file uploads, link tracking and support for custom "hacks". See: Options - Miscellaneous
- Admin console page to manage options regarding permalinks. See: Options - Permalinks
- Admin console page to manage options regarding how the information from your site is sent to a reader's web browser or other application. See: Options - Reading
- Admin console page to manage options regarding the interface with which you write new posts. See: Options - Writing
- Admin console page to create a new page.
- Admin console page to edit a plugin file.
- Admin console page to manage plugins.
- Admin console page to create a new post.
- Admin console page to manage your profile.
- Admin console page to create the wp-config.php file for the first time.
- Admin console page to edit any server-writeable file.
- Admin console page to edit any file within a specific theme.
- Admin console page to manage themes.
- Contains functions related to version upgrading.
- Contains default MySQL tables structure and default options, used when upgrading.
- Admin console page to upgrade froma lower version to a higher one.
- Admin console page to edit a user.
- Admin console page to manage users.
- The default stylesheet for the administrative console.
This directory holds images associated and used by WordPress in the Administration Panels.
- Used for importing posts from b2. See: Importing Content - b2
- Used for importing posts from Blogger. See: Importing Content - Blogger
- Used for importing posts from Greymatter. See: Importing Content - Greymatter
- Used for importing posts from LiveJournal. See: Importing Content - LiveJournal
- Used for importing posts from Movable Type. See: Importing Content - Movable Type
- Used to import posts via RSS. See: Importing Content - RSS
- Used for importing posts from TextPattern. See: Importing Content - Textpattern
This directory is typically not upgraded.
The /wp-content/ directory is for user-supplied content. WordPress upgrades are supposed to specifically avoid doing anything to any of the contents of this directory, unless the user wants the latest version of the default WordPress Themes.
WordPress Themes and WordPress Plugins are stored in this directory.
All WordPress plugins are placed in this directory. The default plugin shipped with WordPress is an example plugin mostly for plugin developers, the Hello Dolly plugin, which displays random lines of the song "Hello Dolly." Current versions also inlude the Akismet comment spam fighting WordPress Plugin as an option.
All WordPress Theme data is placed within this directory in its own folder such as example.com/wp-content/themes/themedirectory/.
All files associated with a WordPress Theme are stored in their own directory under the wp-content/themes/themedir directory. As an example of the Theme files, the typical files included in the WordPress Default Theme under /wp-content/themes/default/ would be:
- Used to manage how the comments are displayed.
- Used to manage the footer of the pages.
- Used to manage the header of every page.
- Used to manage how the posts are displayed in your homepage.
- Used to display a search form to search for entries.
- Used to manage the sidebar.
- The main CSS file of WordPress.
Some WordPress Themes store images in a subdirectory under their Theme folder. For example, images used by the default theme are in wp-content/themes/default/images/.
- The Incutio XML-RPC Library. Contains XML RPC support functions. Supplied by http://scripts.incutio.com/xmlrpc/
- Contains basic classes including the core post-fetching mechanism, WP_Query, and the rewrite manger, WP_Rewrite.
- Contains a support class for accessing POP mailboxes. Used by wp-mail.php
- Snoopy is a PHP class that simulates a web browser. It automates the task of retrieving web page content and posting forms, for example.
- Contains support functions that are present in newer PHP versions that are used only when running on older PHP versions.
- Contains support functions for cleaning XHTML and formatting text correctly in certain character sets.
- Contains support functions for managing posts in the database, querying user capabilities, fetching and writing comments, etc.
- Contains numerous vital support functions. Largest file in WordPress -- almost double the next largest file.
- Part of the PHP-gettext GPL translation library.
- Contains functions that are used to render and filter HTML in posts or comments.
- Contains functions that are used to manage and use the Links feature of WordPress.
- Contains functions to replace default weekdays and months values.
- Contains a class to wrap file streams, string streams.
- Contains theme functions related to the author of a post or a comment.
- Contains theme functions related to categories.
- Contains theme functions related to comments.
- Contains general theme functions.
- Contains theme functions related to links
- Contains theme functions related to posts.
- Contains all the "template-" files above.
- Used to set miscellaneous variables.
- Used to set the currently used WordPress version.
- Contains functions used to connect to the MySQL database.
- Contains functions used in multi-language support.
This is the directory that holds the smilies (emoticons) used in WordPress if the option is turned on. See Using Smilies for the full list.
This directory includes the files that run the Rich Text Editor in the Write Post panel.
See: WordPress Localization includeonlydiv style=clear:both; background-color:#EEEEFF; border:1px solid #CCCCCC; color:#000000; padding:7px; margin:0.5em auto 0.5em auto; vertical-align:middle;This article is marked as in need of editing. You can help Codex by editing it./div/includeonlynoinclude
This Template is used by Codex:Template Messages.
pre 检查到模板循环：模板:Message /pre