WordPress at Your Fingertips
filter is not described

wp_unique_term_slug_is_bad_slug filter-hook . WP 4.3.0

Filters whether the proposed unique term slug is bad.


add_filter( 'wp_unique_term_slug_is_bad_slug', 'filter_function_name_4548', 10, 3 );
function filter_function_name_4548( $needs_suffix, $slug, $term ){
	// filter...

	return $needs_suffix;
Whether the slug needs to be made unique with a suffix.
The slug.
Term object.

Where the hook is called

wp-includes/taxonomy.php 2978
if ( apply_filters( 'wp_unique_term_slug_is_bad_slug', $needs_suffix, $slug, $term ) ) {

Where in WP core the hook is used WordPress

Usage not found.