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



wp_unique_term_slug ›

Since4.3.0
已弃用n/a
apply_filters( 'wp_unique_term_slug', $slug, $term, $original_slug )
参数: (3)
  • (string) $slug Unique term slug.
    Required: Yes
  • (object) $term Term object.
    Required: Yes
  • (string) $original_slug Slug originally passed to the function for testing.
    Required: Yes
定义在:
文档:

Filters the unique term slug.





源码

return apply_filters( 'wp_unique_term_slug', $slug, $term, $original_slug );