- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Plugin API/Filter Reference
Languages: English ? 日 本語 ? (Add your language)
This article is a (hopefully complete) list of the filter hooks available for use in plugindevelopment in Version 2.1 and above of WordPress. For more information:
To learn more about what filter and action hooks are, see Plugin API.
To learn about writing plugins in general, see Writing a Plugin.
For a reference list of action hooks, see Plugin API/Action Reference.
For information about filter and action hooks in previous versions of WordPress, see Plugin API/Hooks 2.0.x.
Note: If you wantto add to or clarify this documentation, please follow the style of the existing entries. Describe what data the filter is applied to, and if the filter function takes additional arguments, describe the argument list.
Contents
[hide]
1 Post, Page, and Attachment (Upload) Filters
1.1 Database Reads
1.2 Database Writes
2 Comment, Trackback, and Ping Filters
2.1 Database Reads
2.2 Database Writes
3 Category Filters
3.1 Database Reads
3.2 Database Writes
4 Link Filters
5 Date and Time Filters
6 Author and User Filters
6.1 Database Reads
6.2 Database Writes
7 Blogroll Filters
8 Blog Information and Option Filters
9 General Text Filters
10 Administrative Filters
11 Rich Text Editor Filters
12 Template Filters
13 Advanced WordPress Filters
14 Further Reading
Post, Page, and Attachment (Upload) Filters
See also #Category Filters, #Author and User Filters, #Link Filters, #Date and Time Filters, and #Administrative Filters below.
Database Reads
Filters in this section are applied to information read from the database, prior to displaying on a page or editing screen.
attachment_fields_to_edit
applied to the form fields to be displayed when editing an attachment. Called in the get_attachment_fields_to_edit function. Filter function arguments: an array of form fields, the post object.
attachment_icon
applied to the icon for an attachment in the get_attachment_icon function. Filter function arguments: icon file as an H
文档评论(0)