WPDev.one
Core Function
View Source on Trac ↗

wp_unique_term_slug()

wp_unique_term_slug( mixed $slug, mixed $term )

Makes term slug unique, if it isn't already.

Parameters 2 required

Name / Type Description
$slug
string

The string that will be tried for a unique slug.

Required
$term
object

The term object that the `$slug` will belong to.

Required

Return Value

(string)
Will return a true unique slug.

Function Information

Since Version
2.3.0
Source File
wp-includes/taxonomy.php
Advertisement