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

post_permalink( int|WP_Post $post ): string|false

Retrieve permalink from post ID.


Description

Top ↑

See also


Top ↑

Parameters

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

Top ↑

Return

string|false


Top ↑

Source

File: wp-includes/deprecated.php. View all references

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

	return get_permalink( $post );
}


Top ↑

Changelog

Changelog
Version Description
4.4.0 Use get_permalink()
1.0.0 Introduced.

Top ↑

User Contributed Notes

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