post_permalink( int|WP_Post $post_id )
This function has been deprecated. Use get_permalink() instead.
Retrieve permalink from post ID.
Description
See also
Parameters
Return
(string|false)
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 ); }
Changelog
Version | Description |
---|---|
4.4.0 | Use get_permalink() |
1.0.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/post_permalink