wpseek.com
WordPress开发者和主题制作者的搜索引擎



pre_post_link › WordPress过滤钩子

Since3.0.0
已弃用n/a
› apply_filters( 'pre_post_link', $permalink, $post, $leavename )
参数: (3)
  • () permalink The site's permalink structure.
    Required: Yes
  • () post The post in question.
    Required: Yes
  • () leavename Whether to keep the post name.
    Required: Yes
定义在:
文档:

Filters the permalink structure for a post before token replacement occurs.

Only applies to posts with post_type of 'post'.




源码

$permalink = apply_filters( 'pre_post_link', $permalink, $post, $leavename );