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

post_permalink( int|WP_Post $post_id )

Retrieve permalink from post ID.


Description Description

See also See also


Top ↑

Parameters Parameters

$post_id

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


Top ↑

Return Return

(string|false)


Top ↑

Source 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 );
}

Top ↑

Changelog Changelog

Changelog
Version Description
4.4.0 Use get_permalink()
1.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.