站长百科 | 数字化技能提升教程 数字化时代生存宝典
首页
数字化百科
电子书
▼
建站程序
开发
服务器
办公软件
开发教程
▼
服务器教程
软件使用教程
运营教程
热门电子书
▼
CSS教程
WordPress教程
导航
程序频道
推广频道
网赚频道
人物频道
网站程序
网页制作
云计算
服务器
CMS
论坛
网店
虚拟主机
cPanel
网址导航
WIKI使用导航
WIKI首页
热点词条
最新资讯
网站程序
站长人物
页面分类
使用帮助
编辑测试
创建条目
网站地图
站长百科导航
站长百科
主机侦探
IDCtalk云说
跨境电商导航
WordPress啦
站长专题
网站推广
网站程序
网站赚钱
虚拟主机
cPanel
网址导航专题
云计算
微博营销
虚拟主机管理系统
开放平台
WIKI程序与应用
美国十大主机
编辑“
WordPress:Plugin API/Filter Reference
”(章节)
人物百科
|
营销百科
|
网赚百科
|
站长工具
|
网站程序
|
域名主机
|
互联网公司
|
分类索引
跳转至:
导航
、
搜索
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
== 管理 Filters == The filters in this section are related to the administration screens of WordPress, including content editing screens. 这个部分的filters与WordPress管理界面相关,包括内容编辑界面。 ;autosave_interval: applied to the interval for auto-saving posts. ;autosave_interval:应用到自动保存的文章的时间间隔。 ;cat_rows: applied to the category rows HTML generated for managing categories in the admin menus. ;cat_rows:应用到管理菜单管理类别中产生的HTML类别rows。 ;comment_edit_pre : applied to comment content prior to display in the editing screen. ;comment_edit_pre :应用到评论内容,再显示到编辑界面。 ;comment_edit_redirect: applied to the redirect location after someone edits a comment in the admin menus. Filter function arguments: redirect location, comment ID. ;comment_edit_redirect:有人在管理界面中编辑评论之后,应用到redirect位置。Filter function arguments: redirect location, 评论ID。 ;comment_moderation_subject: applied to the mail subject before sending email notifying the administrator of the need to moderate a new comment. Filter function arguments: mail subject, comment ID. Note that this happens inside the default <tt>wp_notify_moderator</tt> function, which is a "pluggable" function, meaning that plugins can override it; see [[WordPress:Plugin API]]). ;comment_moderation_subject:向管理员发送电子邮件,要求审核新评论之前,应用到邮件主题。Filter function arguments:邮件主题,评论ID。注意这在默认<tt>wp_notify_moderator</tt>函数内发生,是个"pluggable"函数,意思是插件可以取代这个函数;请看看[[WordPress:Plugin API|插件API]])。 ;comment_moderation_text: applied to the body of the mail message before sending email notifying the administrator of the need to moderate a new comment. Filter function arguments: mail body text, comment ID. Note that this happens inside the default <tt>wp_notify_moderator</tt> function, which is a "pluggable" function, meaning that plugins can override it; see [[WordPress:Plugin API]]). ;comment_moderation_text:向管理员发送电子邮件,要求审核新评论之前,应用到邮件内容。Filter function arguments:邮件内容文本,评论ID。注意这在默认<tt>wp_notify_moderator</tt>函数内发生,是个"pluggable"函数,意思是插件可以取代这个函数;请看看[[WordPress:Plugin API|插件API]]) ;comment_moderation_text: ;comment_moderation_text: ;comment_notification_headers: applied to the mail headers before sending email notifying the post author of a new comment. Filter function arguments: mail header text, comment ID. Note that this happens inside the default <tt>wp_notify_postauthor</tt> function, which is a "pluggable" function, meaning that plugins can override it; see [[WordPress:Plugin API]]). ;comment_notification_headers: 向管理员发送电子邮件,要求审核新评论之前,应用到邮件标头。Filter function arguments:邮件标头文本,评论ID。注意这在默认<tt>wp_notify_postauthor</tt>函数内发生,是个"pluggable"函数,意思是插件可以取代这个函数;请看看[[WordPress:Plugin API|插件API]]) ;comment_notification_subject: applied to the mail subject before sending email notifying the post author of a new comment. Filter function arguments: mail subject, comment ID. Note that this happens inside the default <tt>wp_notify_postauthor</tt> function, which is a "pluggable" function, meaning that plugins can override it; see [[WordPress:Plugin API]]). ;comment_notification_subject: 向文章作者发送电子邮件,提醒有新评论之前,应用到邮件主题。Filter function arguments:邮件主题,评论ID。注意这在默认<tt>wp_notify_postauthor</tt>函数内发生,是个"pluggable"函数,意思是插件可以取代这个函数;请看看[[WordPress:Plugin API|插件API]])。 ;comment_notification_text: applied to the body of the mail message before sending email notifying the post author of a new comment. Filter function arguments: mail body text, comment ID. Note that this happens inside the default <tt>wp_notify_postauthor</tt> function, which is a "pluggable" function, meaning that plugins can override it; see [[WordPress:Plugin API]]). ;comment_notification_text: 向文章作者发送电子邮件,提醒有新评论之前,应用到邮件信息主体部分。Filter function arguments:邮件主体文本,评论ID。注意这在默认<tt>wp_notify_postauthor</tt>函数内发生,是个"pluggable"函数,意思是插件可以取代这个函数;请看看[[WordPress:Plugin API|插件API]])。 ;cron_schedules: applied to an empty array to allow a plugin to generate cron schedules in the <tt>wp_get_schedules</tt> function. ;cron_schedules:应用到空数组,使得插件能够在<tt>wp_get_schedules</tt>函数中创建cron schedules。 ;default_content: applied to the default post content prior to opening the editor for a new post. ;default_content:应用到默认文章内容,再为新文章打开编辑器。 ;default_excerpt : applied to the default post excerpt prior to opening the editor for a new post. ;default_excerpt : 应用到默认文章摘录,再为新文章打开编辑器。 ;default_title : applied to the default post title prior to opening the editor for a new post. ;default_title : 应用到默认文章标题,再为新文章打开编辑器。 ;format_to_edit : applied to comment content, author name, author email, and author URL by the <tt>format_to_edit</tt> function, which is called by the admin menus to set up a comment for editing. Also applied to when editing posts in the admin menus. ;format_to_edit :由<tt>format_to_edit</tt>函数应用到评论内容,作者名,作者电子邮件和作者URL,函数由管理界面菜单调用,设置评论,用于编辑。在管理菜单中编辑文章的时候,也适用。 ;explain_nonce_(verb)-(noun): allows a filter function to define text to be used to explain a nonce that is otherwise not explained by the WordPress core code. You will need to define specific verb/noun filters to use this. For instance, if your plugin defines a nonce for updating a tag, you would define a filter for "explain_nonce_update-tag". Filter function arguments: text to display (defaults to a generic "Are you sure you want to do this?" message) and extra information from the end of the action URL. In the example here, your function might simply return the string "Are you sure you want to update this tag?". ;explain_nonce_(verb)-(noun): 允许filter function定义文本解释nonce,否则WordPress核心代码就不解释nonce。你需要定义特别的动词/名词使用nonce。例如,如果你的插件定义nonce来更新标签,你就要为"explain_nonce_update-tag"定义filter。Filter function arguments:要显示的文本(默认为一般的"你确定要这样做吗?" 信息)和action URL结尾部分的额外信息。在这里的例子中,你的函数可能只返回字符串"你确定要更新这个标签吗?"。 ;format_to_edit : applied to post content, excerpt, title, and password by the <tt>format_to_edit</tt> function, which is called by the admin menus to set up a post for editing. Also applied to when editing comments in the admin menus. ;format_to_edit : 由<tt>format_to_edit</tt>函数,应用到文章内容,摘录,标题和密码,函数由管理界面调用,设置文章来编辑。在管理菜单中编辑文章的时候,也适用。 ;format_to_post: applied to post content by the <tt>format_to_post</tt> function, which is not used in WordPress by default. ;format_to_post:由<tt>format_to_post</tt>函数应用到文章内容,默认情况下,WordPress不使用这个函数。 ;manage_link_columns: applied to the list of columns to print on the blogroll management screen. Filter function argument/return value is an associative list where the element key is the name of the column, and the value is the header text for that column. See also action <tt>manage_link_custom_column</tt>, which puts the column information into the edit screen. ;manage_link_columns:应用到栏列表,印到友情链接管理界面。Filter function argument/返回值是个相关列表,element key是栏名称,参数值是栏的标头文本。也看看action <tt>manage_link_custom_column</tt>,将栏信息放在了编辑界面。 ;manage_posts_columns: applied to the list of columns to print on the manage posts screen. Filter function argument/return value is an associative array where the element key is the name of the column, and the value is the header text for that column. See also action <tt>manage_posts_custom_column</tt>, which puts the column information into the edit screen. (see [http://scompt.com/archives/2007/10/20/adding-custom-columns-to-the-wordpress-manage-posts-screen Scompt's tutorial] for examples and use.) ;manage_posts_columns: 应用到栏列表,印到管理文章界面。Filter function argument/返回值是个相关列表,element key是栏名称,参数值是栏的标头文本。也看看action <tt>manage_link_custom_column</tt>,将栏信息放在了编辑界面。(看看[http://scompt.com/archives/2007/10/20/adding-custom-columns-to-the-wordpress-manage-posts-screen Scompt's tutorial] 中的例子和用法。) ;manage_pages_columns: applied to the list of columns to print on the manage pages screen. Filter function argument/return value is an associative array where the element key is the name of the column, and the value is the header text for that column. See also action <tt>manage_pages_custom_column</tt>, which puts the column information into the edit screen. ;manage_pages_columns:应用到栏列表,发表到管理网页界面。Filter function argument/返回值是个相关列表,element key是栏名称,参数值是栏的标头文本。也看看action <tt>manage_link_custom_column</tt>,将栏信息放在了编辑界面。 ;postmeta_form_limit: applied to the number of post-meta information items shown on the post edit screen. ;postmeta_form_limit:应用到文章编辑界面上显示的post-meta 信息内容显示的数目。 ;pre_upload_error: applied to allow a plugin to create an XMLRPC error for uploading files. ;pre_upload_error:应用,使得插件能够创建XMLRPC错误,更新文件。 ;preview_page_link: applied to the link on the page editing screen that shows the page preview at the bottom of the screen. ;preview_page_link:应用到在界面的底部显示网页预览的网页编辑界面上的链接上。 ;preview_post_link: applied to the link on the post editing screen that shows the post preview at the bottom of the screen. ;preview_post_link: 应用到在界面的底部显示文章预览的文章编辑界面上的链接上。 ;richedit_pre: applied to post content by the <tt>wp_richedit_pre</tt> function, before displaying in the rich text editor. ;richedit_pre:由<tt>wp_richedit_pre</tt>函数应用到文章内容,再在多功能的文本编辑器上显示。 ;show_password_fields: applied to the true/false variable that controls whether the user is presented with the opportunity to change their password on the user profile screen (true means to show password changing fields; false means don't). ;show_password_fields:应用到正确的/错误的变数,这个变数控制了用户是否有机会更改用户基本资料界面上的密码(正确的,指的是显示密码更改栏;错误的意思是不显示)。 ;the_editor: applied to the HTML DIV created to house the rich text editor, prior to printing it on the screen. ;the_editor:应用到创建的HTML DIV中,用于放入多功能的文本编辑器,然后再在界面上发表。 ;user_can_richedit: applied to the calculation of whether the user's browser has rich editing capabilities, and whether the user wants to use the rich editor, in the <tt>user_can_richedit</tt> function. Filter function argument and return value is true/false if the current user can/cannot use the rich editor. ;user_can_richedit:用来考虑在<tt>user_can_richedit</tt>函数中,用户的浏览器是否有丰富的编辑功能,用户是否想要使用丰富的编辑器。如果当前用户能够/不能够使用多功能编辑器,Filter function argument 和返回参数值是正确的/错误的。 ;user_has_cap: applied to a user's capabilities list in the <tt>WP_User->has_cap</tt> function (which is called by the <tt>current_user_can</tt> function). Filter function arguments are the capabilities list to be filtered, the capability being questioned, and the argument list (which has things such as the post ID if the capability is to edit posts, etc.) ;user_has_cap:应用到<tt>WP_User->has_cap</tt>函数中的用户功能列表(也由<tt>current_user_can</tt>函数调用)。Filter function arguments是需要过滤的功能列表,需要查询的功能,和参数列表(如果功能是要编辑文章,等等,就有如,文章ID) ;wp_handle_upload: applied to the upload information when uploading a file. Filter function argument: array with elements "file" (file name), "url", "type". ;wp_handle_upload:上传文件时,应用到上传信息。Filter function argument:拥有"文件"的数组(文件名),"url", "类型"。 ;wp_upload_tabs: applied to the list of custom tabs to display on the upload management admin screen. Use action <tt>upload_files_(tab)</tt> to display a page for your custom tab (see [[WordPress:Plugin API/Action Reference]]). ;wp_upload_tabs:应用到自定义标签列表,显示在上传管理界面。使用action <tt>upload_files_(tab)</tt>为你自定义的标签显示页面(请看看[[WordPress:Plugin API/Action Reference| Plugin API/Action Reference]])。
摘要:
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅
Wordpress-mediawiki:版权
的细节)。
未经许可,请勿提交受版权保护的作品!
取消
编辑帮助
(在新窗口中打开)