2/27/13 Function Reference « WordPress Codex codex.wordpress.org/Function_Reference 1/13 Search WordPress.org Go Codex Codex Contents [hide] 1 Functions by category 1.1 Post, Custom Post Type, Page, Attachment and Bookmarks Functions 1.2 Category, Tag and Taxonomy Functions 1.3 User and Author Functions 1.4 Feed Functions 1.5 HTTP API Functions 1.6 Comment, Ping, and Trackback Functions 1.7 Action, Filter, and Plugin Functions 1.8 Theme-Related Functions 1.9 Formatting Functions 1.10 Miscellaneous Functions 1.11 Multisite functions 2 Official and Unofficial References Function Reference Languages : English • Français • Español • Italiano • 日本語 • ქართული • Português do Brasil • Русский • Türkçe • 中文(简体) • 中文(繁體) • 한국어 • ( Add your language) 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 are useful to Plugin and Theme developers. So, this article lists most of the core functions, excluding Template Tags. At the bottom of the page, there is a section listing other resources for finding information about WordPress functions. In addition to this information, the WordPress phpdoc site details all the WordPress functions by version since 2.6.1. You can help make this page more complete! Here are some things you can do to help: Add documentation to un-documented functions, by creating sub-pages or at least by adding short comments in the lists below. If you create a subpage for a function, please include information and examples of usage of that function, if possible, per the examples found in Template Tags. List more functions here, following the category structure. Correct errors by moving functions to better categories where appropriate, and of course fixing typos. Note: that it is OK for a function to appear in more than one category. Read Contributing to WordPress to find out more about how you can contribute to the effort! Functions by category Post, Custom Post Type, Page, Attachment and Bookmarks Functions Posts get_adjacent_post get_boundary_post get_children get_extended get_next_post get_next_posts_link get_permalink Category, Tag and Taxonomy Functions Categories cat_is_ancestor_of get_all_category_ids get_ancestors get_cat_ID get_cat_name get_categories get_category get_category_by_path get_category_by_slug Home Page WordPress Lessons Getting Started Working with WordPress Design and Layout Advanced Topics Troubleshooting Developer Docs About WordPress Codex Resources Community portal Current events Recent changes Random page Help Showcase Showcase Themes Themes Plugins Plugins Mobile Mobile Support Support Get Involved Get Involved About About Blog Blog Hosting Hosting Download Download Codex tools: Log in
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
2/27/13 Function Reference « WordPress Codex
codex.wordpress.org/Function_Reference 1/13
Search WordPress.org Go
CodexCodex
Contents
[hide]
1 Functions by category
1.1 Post, Custom Post Type, Page,
Attachment and Bookmarks
Functions
1.2 Category, Tag and Taxonomy
Functions
1.3 User and Author Functions
1.4 Feed Functions
1.5 HTTP API Functions
1.6 Comment, Ping, and Trackback
Functions
1.7 Action, Filter, and Plugin
Functions
1.8 Theme-Related Functions
1.9 Formatting Functions
1.10 Miscellaneous Functions
1.11 Multisite functions
2 Official and Unoff icial References
Function Reference
Languages: English • Français • Español • Italiano • 日本語 • ქართული • Português do Brasil • Русский • Türkçe • 中文(简体) • 中文(繁體) •
한국어 • (Add your language)
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 are useful to Plugin and Theme developers. So, this
article lists most of the core functions, excluding Template Tags. At the bottom of the
page, there is a section listing other resources for finding information about WordPress
functions. In addition to this information, the WordPress phpdoc site details all the
WordPress functions by version since 2.6.1.
You can help make this page more complete!
Here are some things you can do to help:
Add documentation to un-documented functions, by creating sub-pages or at least by
adding short comments in the lists below. If you create a subpage for a function,
please include information and examples of usage of that function, if possible, per the
examples found in Template Tags.
List more functions here, following the category structure.
Correct errors by moving functions to better categories where appropriate, and of
course fixing typos. Note: that it is OK for a function to appear in more than one category.
Read Contributing to WordPress to find out more about how you can contribute to the effort!
Functions by category
Post, Custom Post Type, Page,Attachment and BookmarksFunctions