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



wp_unique_term_slug_is_bad_slug › WordPress过滤钩子

Since4.3.0
已弃用n/a
apply_filters( 'wp_unique_term_slug_is_bad_slug', $needs_suffix, $slug, $term )
参数: (3)
  • (bool) $needs_suffix Whether the slug needs to be made unique with a suffix.
    Required: Yes
  • (string) $slug The slug.
    Required: Yes
  • (object) $term Term object.
    Required: Yes
定义在:
文档:

Filters whether the proposed unique term slug is bad.





源码

if ( apply_filters( 'wp_unique_term_slug_is_bad_slug', $needs_suffix, $slug, $term ) ) {