pre_get_shortlink

pre_get_shortlink钩子是Wordpress钩子,过滤器::过滤是否为给定的post生成短链接。

apply_filters( ‘pre_get_shortlink’, bool|string $return, int $id, string $context, bool $allow_slugs )

说明(Description)

将truthy值传递给过滤器将有效地短路短路链路生成过程,而是返回该值。


参数(Parameters)

参数类型说明
$return(bool | string)短路返回值。false或URL字符串。
$id(int)Post ID,或当前Post的0。
$context(string)链接的上下文。“post”或“query”之一,
$allow_slugs(bool)是否允许在短链中使用后段塞。

源码(Source)

//暂无
更新版本源码位置使用被使用
3.0.0wp-includes/link-template.php:386710
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索