过滤当前帖子的永久链接的显示。
原型
apply_filters( 'the_permalink', string $permalink, int|WP_Post $post )
参数
$permalink
(string)
当前帖子的永久链接。
$post
(int|WP_Post)
帖子ID,WP_Post对象或0.默认值0。
源文件
路径:wp-includes/link-template.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/the_permalink/