WordPress官方函数索引(英文版)

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

Custom Post Type

Post insertion/removal

Pages

Custom Fields (postmeta)

Attachments

Bookmarks

Terms


Others

Category, Tag and Taxonomy Functions

Categories

Category Creation

Tags

Taxonomy

User and Author Functions

Admins, Roles and Capabilities

Users and Authors

User meta

User insertion/removal

Login / Logout

Feed Functions

Comment, Ping, and Trackback Functions

Comments Loop

Comments Pagination

Action, Filter, and Plugin Functions

Filters

Actions

Plugins

Shortcodes

Theme-Related Functions

Include functions

Other functions

Formatting Functions

Miscellaneous Functions

Time/Date Functions

Serialization

Options

Admin Menu Functions

Toolbar Functions

Form Helpers

Nonces and Referers (Security)

XMLRPC

Localization

Cron (Scheduling)

Conditional Tags Index

Miscellaneous


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值