Warning: This function has been deprecated. Use get_permalink() instead.
post_permalink( int|WP_Post $post_id )
Retrieve permalink from post ID.
Description Description
See also See also
Parameters Parameters
Return Return
(string|false)
Source Source
File: wp-includes/deprecated.php
function post_permalink( $post_id = 0 ) {
_deprecated_function( __FUNCTION__, '4.4.0', 'get_permalink()' );
return get_permalink( $post_id );
}
Expand full source code Collapse full source code View on Trac
Changelog Changelog
| Version | Description |
|---|---|
| 4.4.0 | Use get_permalink() |
| 1.0.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
Usage