loop_no_results
do_action( ‘loop_no_results’, WP_Query $this )
动作钩子::如果在post查询中找不到结果,则激发。
Action Hook: Fires if no results are found in a post query.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$this | (WP_Query) | WP_查询实例。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.9.0 | wp-includes/class-wp-query.php:3339 | 1 | 0 |
loop_no_results 为WP2原创文章,链接:https://www.wp2.cn/hook/loop_no_results/