in_the_loop()
in_the_loop()
确定调用方是否在循环中。
Determines whether the caller is in the Loop.
说明(Description)
有关此主题函数和类似主题函数的更多信息,请参阅主题开发人员手册中的条件标记文章。
返回(Return)
(bool)如果调用方在循环内,则为True;如果循环尚未开始或结束,则为false。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.0.0 | wp-includes/query.php:944 | 1 function | 0 |
笔记(Notes)
修改单个文章条目标题
in_the_loop() 为WP2原创文章,链接:https://www.wp2.cn/functions/in_the_loop/