posts_where

posts_where钩子是Wordpress钩子,过滤器::过滤查询的WHERE子句。

apply_filters_ref_array( ‘posts_where’, string $where, WP_Query $this )

参数(Parameters)

参数类型说明
$where(string)查询的WHERE子句。
$this(WP_Query)WP_查询实例(通过引用传递)。

源码(Source)

//暂无
更新版本源码位置使用被使用
1.5.0wp-includes/class-wp-query.php:255610

笔记(Notes)

请注意,post_type查询变量不是为标准类型(页、post和附件,请参阅trac上的WP_query class file line 2396)设置的,它仅用于自定义post类型,因此这是您可以为每种类型测试的方法

个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索