Summery Summery
Retrieves the full permalink for the current post or post ID.
Syntax Syntax
Description Description
This function is an alias for get_permalink().
Parameters Parameters
- $post
-
(Optional) Post ID or post object. Default is the global
$post
. - $leavename
-
(Optional) Whether to keep post name or page name.
Default value: false
Return Return
(string|false) The permalink URL or false if post does not exist.
Source Source
File: wp-includes/link-template.php
return get_permalink( $post, $leavename ); }
Advertisement
Changelog Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |