Retrieves the full permalink for the current post or post ID.
Description
This function is an alias for get_permalink() .
See also
Parameters
$post
int|WP_Postoptional- Post ID or post object. Default is the global
$post
. $leavename
booloptional- Whether to keep post name or page name.
Default:
false
Source
function get_the_permalink( $post = 0, $leavename = false ) {
return get_permalink( $post, $leavename );
}
Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.