Core Function
View Source on Trac ↗ is_single()
is_single( mixed $post = '' ) Determines whether the query is for an existing single post.
Parameters 1 required
| Name / Type | Description |
|---|---|
| mixed | (int | string | int[] | string[]) $post Optional. Post ID, title, slug, or array of such to check against. Default empty. Required |
Return Value
(bool)
Whether the query is for an existing single post.
Function Information
Since Version
1.5.0
Source File
wp-includes/query.php
Advertisement