Codex tools: Log in / create account
The files of WordPress define many useful PHP functions. Some of the functions, known as Template Tags, are defined especially for use in WordPress Themes. There are also some functions related to actions and filters (the Plugin API), which are therefore used primarily for developing Plugins. The rest are used to create the core WordPress functionality.
Many of the core WordPress functions may also be useful to Plugin developers, and to a lesser extent, possibly theme developers as well. So, this article lists most of the core functions, by category; some of the function names are also links to more detailed documentation in separate pages. Each category also lists the files where its functions can be found (the files are in the wp-includes directory of WordPress).
Note: This reference applies to Version 2.1 and later versions of WordPress, and does not include functions that have been deprecated as of that version of WordPress. An incomplete page for the 2.0.x versions of WordPress can be found at Function Reference 2.0.x.
Note: Functions specifically for templates, which are listed in the Template Tags article, and contained in files wp-includes/*_template.php, are not listed here.
You can help make this page more complete!
Here are some things you can do to help:
Read Contributing to WordPress to find out more about how you can contribute to the effort!
Post, Page, and Attachment FunctionsThese functions are contained in formatting.php, post.php. See also Template Tags.
|
Category, Tag and Taxonomy FunctionsFunctions surrounding the WordPress Terms tables, encompassing categories and tags for classifying posts, pages, links, etc. Category functions in category.php
Tag Functions in category.php
Term Functions in taxonomy.php
Other Category Functions'
|
User and Author FunctionsThese functions are in user.php, pluggable.php, registration.php. See also Template Tags.
|
Feed FunctionsThese functions are in functions.php, feed.php, rss.php
|
Comment, Ping, and Trackback FunctionsThese functions are found in comment.php, functions.php, post.php. See also Template Tags.
|
Action, Filter, and Plugin FunctionsThese functions are contained in plugin.php. See also Plugin API. |
Theme-Related FunctionsThese functions are found in theme.php.
|
Formatting FunctionsThese functions are contained in formatting.php, functions.php, kses.php.
|
Miscellaneous FunctionsThese functions are contained in formatting.php, functions.php, bookmarks.php, cron.php, l10n.php, user.php, pluggable.php Time/Date Functions
Serialization
Options
XMLRPC
Localization See also Translating WordPress.
Cron (Scheduling)
Miscellaneous
|
ClassesThe following classes were created by WordPress developers, and are found in files capabilities.php, classes.php, class-snoopy.php, locale.php, query.php, rewrite.php, script-loader.php, wp-db.php:
The following classes were created by outside developers, and are found in files class-IXR.php, class-pop3.php, class-snoopy.php, gettext.php, rss.php, streams.php:
|
For a comprehensive list of functions, take a look at the category Functions
This page is marked as incomplete. You can help Codex by expanding it.