Filter hook 'wp_unique_term_slug_is_bad_slug'

in WP Core File wp-includes/taxonomy.php at line 3129

Description

Filters whether the proposed unique term slug is bad.

Occurrences

Filename Line Number
wp-includes/taxonomy.php 3129

Parameters

Type Name Description
bool $needs_suffix Whether the slug needs to be made unique with a suffix.
string $slug The slug.
object $term Term object.

PHP Doc

/**
	 * Filters whether the proposed unique term slug is bad.
	 *
	 * @since 4.3.0
	 *
	 * @param bool   $needs_suffix Whether the slug needs to be made unique with a suffix.
	 * @param string $slug         The slug.
	 * @param object $term         Term object.
	 */