WordPress at a glance
function is not described

post_permalink() WP 1.0.0

Deprecated in 4.4.0. It is no longer supported and can be removed in future releases. Use get_permalink() instead.

Retrieve permalink from post ID.

  • See: get_permalink()

No Hooks.




post_permalink( $post_id );
Post ID or WP_Post object.
Default: global $post

Code of post permalink: wp-includes/deprecated.php WP 5.2.2

function post_permalink( $post_id = 0 ) {
	_deprecated_function( __FUNCTION__, '4.4.0', 'get_permalink()' );

	return get_permalink( $post_id );