parse_query
do_action_ref_array( ‘parse_query’, WP_Query $this )
动作钩子::在分析主查询变量后激发。
Action Hook: Fires after the main query vars have been parsed.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$this | (WP_Query) | WP_查询实例(通过引用传递)。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
1.5.0 | wp-includes/class-wp-query.php:1082 | 1 | 0 |
parse_query 为WP2原创文章,链接:https://www.wp2.cn/hook/parse_query/