From db1691adb3d038724e5fe1290bca45a352064055 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Fri, 7 Jul 2023 01:04:59 +0200 Subject: [PATCH] New property for `WP_Query`. --- schemas/query.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/schemas/query.json b/schemas/query.json index b14e86c..25b35f5 100644 --- a/schemas/query.json +++ b/schemas/query.json @@ -14,6 +14,7 @@ "posts", "post_count", "current_post", + "before_loop", "in_the_loop", "current_comment", "found_posts", @@ -169,6 +170,10 @@ "description": "Index of the current item in the loop.", "type": "integer" }, + "before_loop": { + "description": "Whether the caller is before the loop.", + "type": "boolean" + }, "in_the_loop": { "description": "Whether the loop has started and the caller is in the loop.", "type": "boolean"