WordPress at a glance
function is not described

post_permalink() WP 1.0.0

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

Retrieve permalink from post ID.

No Hooks.

Return

String|false. Null. Nothing.

Usage

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

Notes

  • See: get_permalink()

Changelog

Since 1.0.0 Introduced.
Deprecated Since 4.4.0 Use get_permalink()

Code of post_permalink() WP 5.7.1

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

	return get_permalink( $post_id );
}