站长百科 | 数字化技能提升教程 数字化时代生存宝典
首页
数字化百科
电子书
▼
建站程序
开发
服务器
办公软件
开发教程
▼
服务器教程
软件使用教程
运营教程
热门电子书
▼
CSS教程
WordPress教程
导航
程序频道
推广频道
网赚频道
人物频道
网站程序
网页制作
云计算
服务器
CMS
论坛
网店
虚拟主机
cPanel
网址导航
WIKI使用导航
WIKI首页
热点词条
最新资讯
网站程序
站长人物
页面分类
使用帮助
编辑测试
创建条目
网站地图
站长百科导航
站长百科
主机侦探
IDCtalk云说
跨境电商导航
WordPress啦
站长专题
网站推广
网站程序
网站赚钱
虚拟主机
cPanel
网址导航专题
云计算
微博营销
虚拟主机管理系统
开放平台
WIKI程序与应用
美国十大主机
编辑“
WordPress:Plugin API/Filter Reference
”(章节)
人物百科
|
营销百科
|
网赚百科
|
站长工具
|
网站程序
|
域名主机
|
互联网公司
|
分类索引
跳转至:
导航
、
搜索
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
== 类别 Filters == See also [[WordPress:#Administrative Filters]] below. 也看看下面的[[WordPress:#Administrative Filters|#管理Filters]]。 === Database Reads === === Database Reads === Filters in this section are applied to information read from the database, prior to displaying on a page or editing screen. 这个部分的filteres应用到从数据库中读出,但是还没有在网页或者编辑界面上显示的信息。 ;category_description : applied to the "description" field categories by the <tt>category_description</tt> and <tt>wp_list_categories</tt> functions. Filter function arguments: description, category ID when called from <tt>category_description</tt>; description, category information array (all fields from the category table for that particular category) when called from <tt>wp_list_categories</tt> (sorry, but that's how it is). ;category_description :应用到<tt>category_description</tt> 和<tt>wp_list_categories</tt>函数的"描述"栏类别。Filter function arguments:从<tt>category_description</tt>调用时的描述,类别ID;从<tt>wp_list_categories</tt>调用时,描述,类别信息数组(类别表格中关于那个类别的所有栏)(对不起,但就是这样的)。 ;category_feed_link: applied to the feed URL generated for the category feed by the <tt>get_category_rss_link</tt> function. ;category_feed_link:应用到为<tt>get_category_rss_link</tt>函数的类别feed而创建的feed URL。 ;category_link: applied to the URL created for a category by the <tt>get_category_link</tt> function. Filter function arguments: link URL, category ID. ;category_link:应用到<tt>get_category_link</tt>函数的类别的URL。Filter function arguments: 链接 URL, 类别 ID。 ;get_categories : applied to the category list generated by the <tt>get_categories</tt> function (which is in turn used by many other functions). Filter function arguments: category list, <tt>get_categories</tt> options list. ;get_categories :应用到<tt>get_categories</tt>函数产生的类别列表(许多其它函数依次使用)。Filter function arguments:类别列表,<tt>get_categories</tt>选项列表。 ;get_category: applied to the category information that the <tt>get_category</tt> function looks up, which is basically an array of all the fields in WordPress's category table for a particular category ID. ;get_category:应用到<tt>get_category</tt>函数查找的类别信息,基本是WordPress类别表格,关于某个类别ID的所有栏。 ;list_cats : called for two different purposes: ;list_cats :根据两个不同的目的调用: #the <tt>wp_dropdown_categories</tt> function uses it to filter the <tt>show_option_all</tt> and <tt>show_option_none</tt> arguments (which are used to put options "All" and "None" in category drop-down lists). No additional filter function arguments. # <tt>wp_dropdown_categories</tt>函数使用它来过滤<tt>show_option_all</tt> 和 <tt>show_option_none</tt>参数(用来将"所有的" 和"无"选项放到类别下拉列表上)没有额外的filter function arguments。 #the <tt>wp_list_categories</tt> function applies it to the category names. Filter function arguments: category name, category information list (all fields from the category table for that particular category). #<tt>wp_list_categories</tt>函数将其应用到类别名。Filter function arguments:类别名,类别信息列表(类别表格中关于那个类别的所有栏)。 ;list_cats_exclusions: applied to the SQL WHERE statement giving the categories to be excluded by the <tt>get_categories</tt> function. Typically, a plugin would add to this list, in order to exclude certain categories or groups of categories from category lists. Filter function arguments: excluded category WHERE clause, <tt>get_categories</tt> options list. ;list_cats_exclusions:应用到SQL,声明提供由<tt>get_categories</tt>函数删除的类别。一般来说,插件会添加到这个列表,从类别列表中删除某个类别或者某组类别。Filter function arguments: excluded category WHERE clause, <tt>get_categories</tt> 选项列表。 ;single_cat_title: applied to the category name when used to create a blog page title by the <tt>wp_title</tt> and <tt>single_cat_title</tt> functions. ;single_cat_title: <tt>wp_title</tt> 和 <tt>single_cat_title</tt>函数创建博客网页标题的时候,应用到博客名。 ;the_category: applied to the list of categories (an HTML list with links) created by the <tt>get_the_category_list</tt> function. Filter function arguments: generated HTML text, list separator being used (empty string means it is a default LI list), <tt>parents</tt> argument to <tt>get_the_category_list</tt>. ;the_category:应用到类别列表(拥有链接的HTML列表),由<tt>get_the_category_list</tt>函数创建。Filter function arguments:产生的HTML文本,使用的列表分隔符(空字符串,表示是默认LI列表),<tt>parents</tt> argument到<tt>get_the_category_list</tt>。 ;the_category_rss: applied to the category list (a list of category XML elements) for a post by the <tt>get_the_category_rss</tt> function, before including in an RSS feed. Filter function arguments are the list text and the type ("rdf" or "rss" generally). ;the_category_rss: 由<tt>get_the_category_rss</tt>函数应用到文章的类别列表(类别XML元素的列表),然后再包含到RSS feed。Filter function arguments作为列表文本和类型(一般为"rdf" 或者"rss")。 ;wp_dropdown_cats: applied to the drop-down category list (a text string containing HTML option elements) generated by the <tt>wp_dropdown_categories</tt> function. ;wp_dropdown_cats:应用到<tt>wp_dropdown_categories</tt>函数创建的下拉类别列表(包含HTML选项元素的文本字符串) ;wp_list_categories: applied to the category list (an HTML list) generated by the <tt>wp_list_categories</tt> function. ;wp_list_categories:应用到<tt>wp_list_categories</tt>函数创建的类别列表(HTML列表) === Database Writes === === 数据库 Writes === Filters in this section are applied to information prior to saving to the database. 这个部分的Filters应用到还没有保存到数据库的信息中。 ;pre_category_description: applied to the category desription prior to saving in the database. ;pre_category_description:应用到类别描述,然后保存到数据库。 ;pre_category_name: applied to the category name prior to saving in the database. ;pre_category_name:应用到还没有保存到数据库的类别名。 ;pre_category_nicename: applied to the category nice name prior to saving in the database. ;pre_category_nicename: 应用到还没有保存到数据库的类别昵称。
摘要:
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅
Wordpress-mediawiki:版权
的细节)。
未经许可,请勿提交受版权保护的作品!
取消
编辑帮助
(在新窗口中打开)