WPDev.one
Core Function
View Source on Trac ↗

get_author_posts_url()

get_author_posts_url( mixed $author_id, mixed $author_nicename = '' )

Retrieves the URL to the author page for the user with the ID provided.

Parameters 1 required

Name / Type Description
$author_id
int

Author ID.

Required
$author_nicename
string

Optional. The author's nicename (slug). Default empty.

Return Value

(string)
The URL to the author's page.

Function Information

Since Version
2.1.0
Source File
wp-includes/author-template.php
Advertisement