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



wp_unique_post_slug_is_bad_hierarchical_slug › WordPress过滤钩子

Since3.1.0
已弃用n/a
› apply_filters( 'wp_unique_post_slug_is_bad_hierarchical_slug', false, $slug, $post_type, $post_parent )
参数: (4)
  • () bad_slug Whether the post slug would be bad in a hierarchical post context.
    Required: Yes
  • () slug The post slug.
    Required: Yes
  • () post_type Post type.
    Required: Yes
  • () post_parent Post parent ID.
    Required: Yes
定义在:
文档:

Filters whether the post slug would make a bad hierarchical post slug.





源码

$is_bad_hierarchical_slug = apply_filters( 'wp_unique_post_slug_is_bad_hierarchical_slug', false, $slug, $post_type, $post_parent );