post_permalink()
post_permalink( int|WP_Post $post_id )
从post ID检索permalink。
Retrieve permalink from post ID.
说明(Description)
另见函数 get_permalink()
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$post_id | (int | WP_Post) | 可选 | Post ID或WP_Post对象。默认值为全局$post。 |
返回(Return)
(string|false)
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.4.0 | wp-includes/deprecated.php:3622 | 0 | 2 |
笔记(Notes)
用法
post_permalink() 为WP2原创文章,链接:https://www.wp2.cn/functions/post_permalink/