A WordPress-centric search engine for devs and theme authors



wp_unique_term_slug_is_bad_slug ›

Since4.3.0
Deprecatedn/a
apply_filters( 'wp_unique_term_slug_is_bad_slug', $needs_suffix, $slug, $term )
Parameters: (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
Defined at:
Codex:

Filters whether the proposed unique term slug is bad.





Source

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