站长百科 | 数字化技能提升教程 数字化时代生存宝典
首页
数字化百科
电子书
▼
建站程序
开发
服务器
办公软件
开发教程
▼
服务器教程
软件使用教程
运营教程
热门电子书
▼
CSS教程
WordPress教程
导航
程序频道
推广频道
网赚频道
人物频道
网站程序
网页制作
云计算
服务器
CMS
论坛
网店
虚拟主机
cPanel
网址导航
WIKI使用导航
WIKI首页
热点词条
最新资讯
网站程序
站长人物
页面分类
使用帮助
编辑测试
创建条目
网站地图
站长百科导航
站长百科
主机侦探
IDCtalk云说
跨境电商导航
WordPress啦
站长专题
网站推广
网站程序
网站赚钱
虚拟主机
cPanel
网址导航专题
云计算
微博营销
虚拟主机管理系统
开放平台
WIKI程序与应用
美国十大主机
编辑“
WordPress:Plugin API/Filter Reference
”(章节)
人物百科
|
营销百科
|
网赚百科
|
站长工具
|
网站程序
|
域名主机
|
互联网公司
|
分类索引
跳转至:
导航
、
搜索
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
== 文章,网页,和Attachment (上传) Filters == See also [[WordPress:#Category Filters]], [[WordPress:#Author and User Filters]], [[WordPress:#Link Filters]], [[WordPress:#Date and Time Filters]], and [[WordPress:#Administrative Filters]] below. 也看看下面的[[WordPress:#Category Filters|类别Filters]], [[WordPress:#Author and User Filters|#作者和用户Filters]], [[WordPress:#Link Filters|#链接Filters]], [[WordPress:#Date and Time Filters|#日期和时间Filters]], 和[[WordPress:#Administrative Filters|#管理Filters]]。 === Database Reads === ===数据库 Reads === Filters in this section are applied to information read from the database, prior to displaying on a page or editing screen. 这个部分的Filters应用到来自数据库的信息,在显示网页或者编辑界面之前。 ;attachment_icon: applied to the icon for an attachment in the <tt>get_attachment_icon</tt> function. Filter function arguments: icon file as an HTML IMG tag, attachment ID. ;attachment_icon:为<tt>get_attachment_icon</tt>函数中的附属使用图标。Filter函数参数:图标文件作为HTML图像标签,附属ID。 ;attachment_innerHTML: applied to the title to be used for an attachment if there is no icon, in the <tt>get_attachment_innerHTML</tt> function. Filter function arguments: inner HTML (defaults to the title), attachment ID. ;attachment_innerHTML:如果<tt>get_attachment_innerHTML</tt>函数中没有图标,应用到attachment中的标题。Filter function arguments:内置HTML(默认为标题),attachment ID。 ;content_edit_pre: applied to post content prior to display for editing. ;content_edit_pre:显示编辑文章内容之前,应用到文章内容。 ;excerpt_edit_pre: applied to post excerpt prior to display for editing. ;excerpt_edit_pre:显示编辑摘录之前,应用到摘录中。 ;get_attached_file: applied to the attached file information retrieved by the <tt>get_attached_file</tt> function. Filter function arguments: file information, attachment ID. ;get_attached_file:应用到<tt>get_attached_file</tt>函数得到的附件信息。Filter function arguments:文件信息, attachment ID。 ;get_enclosed: applied to the enclosures list for a post by the <tt>get_enclosed</tt> function. ;get_enclosed: <tt>get_enclosed</tt>函数将这个filter应用到文章enclosures列表上。 ;get_pages: applied to the list of pages returned by the <tt>get_pages</tt> function. Filter function arguments: list of pages (each item of which contains a page data array), <tt>get_pages</tt> function argument list (telling which pages were requested). ;get_pages:应用到<tt>get_pages</tt>函数返回的网页列表上。Filter function arguments:网页列表(每个网页包含网页数据数组),<tt>get_pages</tt>函数参数列表(告知请求哪个网页)。 ;get_pung: applied to the list of pinged URLs for a post by the <tt>get_pung</tt> function. ;get_pung: <tt>get_pung</tt>函数将这个filter应用到文章pinged URLs列表上。 ;get_the_excerpt: applied to the post's excerpt in the <tt>get_the_excerpt</tt> function. ;get_the_excerpt:应用到<tt>get_the_excerpt</tt>函数中的文章摘录中。 ;get_the_guid: applied to the post's GUID in the <tt>get_the_guid</tt> function. ;get_the_guid:应用到<tt>get_the_guid</tt>函数中的文章GUID中。 ;get_to_ping: applied to the list of URLs to ping for a post by the <tt>get_to_ping</tt> function. ;get_to_ping:应用到URLs列表,<tt>get_to_ping</tt>函数ping文章。 ;icon_dir: applied to the template's image directory in several functions. Basically allows a plugin to specify that icons for MIME types should come from a different location. ;icon_dir:应用到几个函数中的模板的图像目录。一般允许插件规定MIME类型的插件应该来自不同的位置。 ;icon_dir_uri: applied to the template's image directory URI in several functions. Basically allows a plugin to specify that icons for MIME types should come from a different location. ;icon_dir_uri:应用到几个函数中的模板的图像目录URI。一般允许插件规定MIME类型的插件应该来自不同的位置。 ;prepend_attachment: applied to the HTML to be prepended by the <tt>prepend_attachment</tt> function. ;prepend_attachment:应用到HTML,前面附有<tt>prepend_attachment</tt>函数。 ;sanitize_title: applied to a post title by the <tt>sanitize_title</tt> function, after stripping out HTML tags. ;sanitize_title:去除HTML标签后,由<tt>sanitize_title</tt>函数应有到文章标题。 ;single_post_title: applied to the post title when used to create a blog page title by the <tt>wp_title</tt> and <tt>single_post_title</tt> functions. ;single_post_title:由<tt>wp_title</tt>和<tt>single_post_title</tt>函数用来创建博客网页标题的时候,应用到文章标题。 ;the_content : applied to the post content retrieved from the database, prior to printing on the screen (also used in some other operations, such as trackbacks). ;the_content :应用到从数据库中获取的文章内容中,在发表到界面上之前(也用于一些其它的操作,如trackbacks)。 ;the_content_rss: applied to the post content prior to including in an RSS feed. ;the_content_rss:包含在RSS feed之前,应用到文章内容中。 ;the_editor_content: applied to post content before putting it into a rich editor window. ;the_editor_content:放入丰富的编辑器窗口之前,应用到文章内容中。 ;the_excerpt: applied to the post excerpt (or post content, if there is no excerpt) retrieved from the database, prior to printing on the screen (also used in some other operations, such as trackbacks). ;the_excerpt:应用到数据库返回的文章摘录(如果没有摘录,用于文章内容),在这些内容发表到界面上之前应用(也用于一些其它的操作,如trackbacks)。 ;the_excerpt_rss: applied to the post excerpt prior to including in an RSS feed. ;the_excerpt_rss:包含在RSS feed之前,应用到文章摘录。 ;the_tags: applied to the tags retrieved from the database, prior to printing on the screen. ;the_tags:应用到从数据库中返回,还没有出现在界面上的标签上。 ;the_title: applied to the post title retrieved from the database, prior to printing on the screen (also used in some other operations, such as trackbacks). ;the_title:用在从数据库中返回,还没有出现在界面的文章标题上(也用于一些其它的操作,如trackbacks)。 ;the_title_rss: applied to the post title before including in an RSS feed (after first filtering with <tt>the_title</tt>. ;the_title_rss:应用到文章标题,然后包含在RSS feed中(首先filtering with <tt>the_title</tt>。 ;title_edit_pre: applied to post title prior to display for editing. ;title_edit_pre:应用到文章标题,再显示编辑。 ;wp_dropdown_pages: applied to the HTML dropdown list of WordPress pages generated by the <tt>wp_dropdown_pages</tt> function. ;wp_dropdown_pages:应用到<tt>wp_dropdown_pages</tt>函数产生的WordPress网页HTML下拉列表。 ;wp_list_pages: applied to the HTML list generated by the <tt>wp_list_pages</tt> function. ;wp_list_pages:应用到<tt>wp_list_pages</tt>函数产生的HTML列表上。 ;wp_list_pages_excludes: applied to the list of excluded pages (an array of page IDs) in the <tt>wp_list_pages</tt> function. ;wp_list_pages_excludes:应用到<tt>wp_list_pages</tt>函数中删除的网页列表(一组网页IDs)。 ;wp_get_attachment_metadata: applied to the attachment metadata retrieved by the <tt>wp_get_attachment_metadata</tt> function. Filter function arguments: meta data, attachment ID. ;wp_get_attachment_metadata:应用到<tt>wp_get_attachment_metadata</tt>函数返回的attachment metadata。Filter function arguments: meta data, attachment ID。 ;wp_get_attachment_thumb_file: applied to the attachment thumbnail file retrieved by the <tt>wp_get_attachment_thumb_file</tt> function. Filter function arguments: thumbnail file, attachment ID. ;wp_get_attachment_thumb_file:应用到<tt>wp_get_attachment_thumb_file</tt>函数返回的attachment thumbnail文件。Filter function arguments: thumbnail 文件, attachment ID。 ;wp_get_attachment_thumb_url: applied to the attachment thumbnail URL retrieved by the <tt>wp_get_attachment_thumb_URL</tt> function. Filter function arguments: thumbnail URL, attachment ID. ;wp_get_attachment_thumb_url:应用到<tt>wp_get_attachment_thumb_URL</tt>函数返回的attachment thumbnail URL。Filter function arguments: thumbnail URL, attachment ID。 ;wp_get_attachment_url: applied to the attachment URL retrieved by the <tt>wp_get_attachment_url</tt> function. Filter function arguments: URL, attachment ID. ;wp_get_attachment_url:应用到<tt>wp_get_attachment_url</tt>函数返回的attachment URL。Filter function arguments: URL, attachment ID。 ;wp_mime_type_icon: applied to the MIME type icon for an attachment calculated by the <tt>wp_mime_type_icon</tt> function. Filter function arguments: icon URI calculated, MIME type, post ID. ;wp_mime_type_icon:应用到<tt>wp_mime_type_icon</tt>函数计算的attachment的MIME类型图标。Filter function arguments: icon URI calculated, MIME类型, 文章 ID ;wp_title: applied to the blog page title before sending to the browser in the <tt>wp_title</tt> function. ;wp_title:应用到博客网页标题,再发送到<tt>wp_title</tt>函数中的浏览器。 === Database Writes === === Database Writes === Filters in this section are applied to information prior to saving to the database. 这个部分的filters用于还没有保存到数据库的信息。 ;add_ping: applied to the new value of the pinged field on a post when a ping is added, prior to saving the new information in the database. ;add_ping:添加ping时,应用到文章pinged区的新的参数值上,在数据库中保存新的信息之前。 ;attachment_max_dims: applied to the maximum image dimensions before reducing an image size. Filter function input (and return value) is either false (if no maximum dimensions have been specified) or a two-item list (width, height). ;attachment_max_dims:减小图像尺寸之前,应用到最大的图像尺寸。Filter function输入(并且返回值)是错误的(如果没有规定最大的尺寸)或者两项内容的列表(宽度,高度)。 ;category_save_pre : applied to post category comma-separated list prior to saving it in the database (also used for attachments). ;category_save_pre :应用到用逗号分开的文章类别列表上,然后再保存到数据库(也用于attachments)。 ;comment_status_pre : applied to post comment status prior to saving it in the database (also used for attachments). ;comment_status_pre :应用到文章评论级别,然后再保存到数据库(也用于attachments)。 ;content_filtered_save_pre : applied to filtered post content prior to saving it in the database (also used for attachments). ;content_filtered_save_pre :应用到已过滤的文章内容,然后再保存到数据库(也用于attachments)。 ;content_save_pre : applied to post content prior to saving it in the database (also used for attachments). ;content_save_pre : 应用到文章内容,然后再保存到数据库(也用于attachments)。 ;excerpt_save_pre : applied to post excerpt prior to saving it in the database (also used for attachments). ;excerpt_save_pre : 应用到文章摘录,然后再保存到数据库(也用于attachments)。 ;name_save_pre : applied to post name prior to saving it in the database (also used for attachments). ;name_save_pre : 应用到文章名,然后再保存到数据库(也用于attachments)。 ;phone_content : applied to the content of a post submitted by email, before saving. ;phone_content :保存之前,应用到通过电子邮件发表的文章内容。 ;ping_status_pre : applied to post ping status prior to saving it in the database (also used for attachments). ;ping_status_pre : 应用到文章ping状态,然后再保存到数据库(也用于attachments)。 ;post_mime_type_pre: applied to the MIME type for an attachment prior to saving it in the database. ;post_mime_type_pre: 应用到attachment的MIME类型,然后再保存到数据库。 ;status_save_pre : applied to post status prior to saving it in the database. ;status_save_pre : 应用到文章状态,然后再保存到数据库。 ;thumbnail_filename: applied to the file name for the thumbnail when uploading an image. ;thumbnail_filename:上传新的图像的时候,应用到小图像的文件名。 ;wp_thumbnail_creation_size_limit: applied to the size of the thumbnail when uploading an image. Filter function arguments: max file size, attachment ID, attachment file name. ;wp_thumbnail_creation_size_limit: 上传图像的时候,应用到小图像的尺寸。Filter function arguments: 最大的文件尺寸, attachment ID, attachment 文件名。 ;wp_thumbnail_max_side_length: applied to the size of the thumbnail when uploading an image. Filter function arguments: image side max size, attachment ID, attachment file name. ;wp_thumbnail_max_side_length: 上传图像的时候,应用到小图像的尺寸。Filter function arguments:图像边缘最大尺寸,attachment ID, attachment 文件名。 ;title_save_pre : applied to post title prior to saving it in the database (also used for attachments). ;title_save_pre : 应用到文章标题,然后再保存到数据库(也用于attachments)。 ;update_attached_file: applied to the attachment information prior to saving in post metadata in the <tt>update_attached_file</tt> function. Filter function arguments: attachment information, attachment ID. ;update_attached_file:应用到attachment信息,然后再保存到<tt>update_attached_file</tt>函数中的文章metadata。Filter function arguments: attachment信息, attachment ID ;wp_delete_file: applied to an attachment file name just before deleting. ;wp_delete_file:删除之前,应用到attachment文件名。 ;wp_generate_attachment_metadata: applied to the attachment metadata array before saving in the database. ;wp_generate_attachment_metadata:保存到数据库之前,应用到attachment metadata array。 ;wp_update_attachment_metadata: applied to the attachment metadata just before saving in the <tt>wp_update_attachment_metadata</tt> function. Filter function arguments: meta data, attachment ID. ;wp_update_attachment_metadata:保存到<tt>wp_update_attachment_metadata</tt>函数之前,应用到attachment metadata。Filter function arguments: meta data, attachment ID。
摘要:
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅
Wordpress-mediawiki:版权
的细节)。
未经许可,请勿提交受版权保护的作品!
取消
编辑帮助
(在新窗口中打开)