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



post_type_link › WordPress过滤钩子

Since3.0.0
已弃用n/a
› apply_filters( 'post_type_link', $post_link, $post, $leavename, $sample )
参数: (4)
  • () post_link The post's permalink.
    Required: Yes
  • () post The post in question.
    Required: Yes
  • () leavename Whether to keep the post name.
    Required: Yes
  • () sample Is it a sample permalink.
    Required: Yes
定义在:
文档:

Filters the permalink for a post of a custom post type.





源码

return apply_filters( 'post_type_link', $post_link, $post, $leavename, $sample );