On this page
apply_filters( 'wp_unique_term_slug', string $slug, object $term, string $original_slug )
Filters the unique term slug.
Parameters
$slugstring-
Unique term slug.
$termobject-
Term object.
$original_slugstring-
Slug originally passed to the function for testing.
Source
File: wp-includes/taxonomy.php. View all references
return apply_filters( 'wp_unique_term_slug', $slug, $term, $original_slug );
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