Note: Only “public” query variables are available via the API, as not all query variables are safe to expose. “Private” query variables are also available when authenticated as a user with edit_posts
. Other query variables can be registered via the query_vars
filter, or json_query_vars
for API-specific query variables.