站长百科 | 数字化技能提升教程 数字化时代生存宝典
首页
数字化百科
电子书
▼
建站程序
开发
服务器
办公软件
开发教程
▼
服务器教程
软件使用教程
运营教程
热门电子书
▼
CSS教程
WordPress教程
导航
程序频道
推广频道
网赚频道
人物频道
网站程序
网页制作
云计算
服务器
CMS
论坛
网店
虚拟主机
cPanel
网址导航
WIKI使用导航
WIKI首页
热点词条
最新资讯
网站程序
站长人物
页面分类
使用帮助
编辑测试
创建条目
网站地图
站长百科导航
站长百科
主机侦探
IDCtalk云说
跨境电商导航
WordPress啦
站长专题
网站推广
网站程序
网站赚钱
虚拟主机
cPanel
网址导航专题
云计算
微博营销
虚拟主机管理系统
开放平台
WIKI程序与应用
美国十大主机
编辑“
WordPress:Plugin API/Filter Reference
”(章节)
人物百科
|
营销百科
|
网赚百科
|
站长工具
|
网站程序
|
域名主机
|
互联网公司
|
分类索引
跳转至:
导航
、
搜索
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
=== 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:版权
的细节)。
未经许可,请勿提交受版权保护的作品!
取消
编辑帮助
(在新窗口中打开)