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



wp_unique_post_slug › WordPress过滤钩子

Since3.3.0
已弃用n/a
› apply_filters( 'wp_unique_post_slug', $slug, $post_id, $post_status, $post_type, $post_parent, $original_slug )
参数: (6)
  • () slug The post slug.
    Required: Yes
  • () post_id Post ID.
    Required: Yes
  • () post_status The post status.
    Required: Yes
  • () post_type Post type.
    Required: Yes
  • () post_parent Post parent ID
    Required: Yes
  • () original_slug The original post slug.
    Required: Yes
定义在:
文档:

Filters the unique post slug.





源码

return apply_filters( 'wp_unique_post_slug', $slug, $post_id, $post_status, $post_type, $post_parent, $original_slug );