Warning: This function has been deprecated. Use get_permalink() instead.
post_permalink() WordPress Function
The post_permalink() function is a great way to get a link to a specific post on your WordPress site. This function can be used in a number of ways, but the most common use is to simply echo the results of the function to the screen.
post_permalink( int|WP_Post $post_id ) #
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 ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.4.0 | Use get_permalink() |
1.0.0 | Introduced. |