is_random
is_random ( No parameters )
See:Returns:- (bool) Whether the query is for random content.
Defined at: - Introduced in WordPress: 7.2.0
- Deprecated in WordPress: —
Description
Determines whether the query is for random content.True for a blog home, archive or search request that includes the `random` query
variable, for example `example.com/random/` or `example.com/random/category/news/`.