post_permalink()

最后更新于:2021-11-27 19:21:54

post_permalink( int|GC_Post$post_id)

Retrieve permalink from post ID.

参数

$post_id

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

响应

(string|false)

源文件

文件: gc-includes/deprecated.php

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

	return get_permalink( $post_id );
}