This function has been deprecated. Use get_permalink() instead.

post_permalink( int|WP_Post $post_id )

Retrieve permalink from post ID.


Description

See also


Parameters

$post_id

(int|WP_Post) (Optional) Post ID or WP_Post object. Default is global $post.


Return

(string|false)


Source

File: wp-includes/deprecated.php

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

	return get_permalink( $post_id );
}


Changelog

Changelog
Version Description
WP-4.4.0 Use get_permalink()
WP-1.0.0 Introduced. This function has been deprecated. Use get_permalink() instead.