This function returns the full paralink of the current post or the designated post.
Parameter | Details |
---|---|
$post | (int) (optional) Post ID or post object. Default is the the current post's id. |
$leavename | (bool) (optional) Whether to keep post name or page name. |
For the parameter $leavename, it is false by default.