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