Retrieves the full permalink for the current post or post ID.
This function is an alias for get_permalink() .
$postint|WP_Postoptional
$post.$leavenamebooloptional
Default:false
function get_the_permalink( $post = 0, $leavename = false ) {
return get_permalink( $post, $leavename );
}
| Version | Description |
|---|---|
| 3.9.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_the_permalink