pre_post_link
目录
apply_filters( ‘pre_post_link’, string $permalink , WP_Post $post , bool $leavename )
过滤器::在令牌替换发生之前过滤post的permalink结构。Filter Hook: Filters the permalink structure for a post before token replacement occurs.
说明(Description)
仅适用于post_类型为“post”的帖子。
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$permalink | (string) | 场地的永久性结构。 |
$post | (WP_Post) | 有问题的帖子。 |
$leavename | (bool) | 是否保留帖子名称。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.0.0 | wp-includes/link-template.php:166 | 1 | 0 |
上一篇: populate_site_meta
总计 0 评论