apply_filters( ‘wp_unique_term_slug_is_bad_slug’, bool $needs_suffix, string $slug, object $term )

In this article

Filters whether the proposed unique term slug is bad.

Parameters

$needs_suffixbool
Whether the slug needs to be made unique with a suffix.
$slugstring
The slug.
$termobject
Term object.

Source

// If we didn't get a unique slug, try appending a number to make it unique.

Changelog

VersionDescription
4.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.