On this page
apply_filters( 'wp_unique_term_slug_is_bad_slug', bool $needs_suffix, string $slug, object $term )
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
File: wp-includes/taxonomy.php. View all references
if ( apply_filters( 'wp_unique_term_slug_is_bad_slug', $needs_suffix, $slug, $term ) ) {
Related
Used By
| Used By | Description |
|---|---|
| wp_unique_term_slug() wp-includes/taxonomy.php | Makes term slug unique, if it isn’t already. |
Changelog
| Version | Description |
|---|---|
| 4.3.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_unique_term_slug_is_bad_slug