WPDev.one
Core Function
View Source on Trac ↗

post_permalink()

post_permalink( mixed $post = 0 )

Retrieve permalink from post ID.

Parameters 1 required

Name / Type Description
(int

| WP_Post) $post Optional. Post ID or WP_Post object. Default is global $post.

Required

Return Value

((string)
| false)

Function Information

Since Version
1.0.0
Source File
wp-includes/deprecated.php
Advertisement