filtrod 4.3.0
wp_unique_term_slug_is_bad_slug
Opis — z kodu źródłowego
Filters whether the proposed unique term slug is bad.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$needs_suffix | bool | Whether the slug needs to be made unique with a suffix. |
$slug | string | The slug. |
$term | object | Term object. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_unique_term_slug_is_bad_slug', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_unique_term_slug_is_bad_slug', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii