过滤帖子的短链接。
原型
apply_filters( 'get_shortlink', string $shortlink, int $id, string $context, bool $allow_slugs )
参数
$shortlink
(string)
短链接网址。
$id
(int)
帖子ID,或当前帖子的0。
$context
(string)
链接的上下文。一个’发布’或’查询’,
$allow_slugs
(bool)
是否允许短链接中的后期slu ..默认情况下不使用。
源文件
路径:wp-includes/link-template.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/get_shortlink/