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.

Return

String/false.

Usage

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

Code of post permalink: wp-includes/deprecated.php VER 5.0.3

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

	return get_permalink( $post_id );
}