post_permalink

函数


post_permalink ( $post = 0 )
参数
  • (int|WP_Post)
    $post
    Optional. Post ID or WP_Post object. Default is global $post.
    Required:
返回值
  • (string|false)
相关
  • get_permalink()
定义位置
  • wp-includes/deprecated.php
    , line 3637
引入
1.0.0
弃用
4.4.0

从文章ID中检索固定链接。

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

	return get_permalink( $post );
}