filtrod 2.5.0
term_name
Opis — z kodu źródłowego
Filters display of the term name in the terms list table.
The default output may include padding due to the term's current level in the term hierarchy.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$pad_tag_name | string | The term name, padded if not top-level. |
$tag | \WP_Term | Term object. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'term_name', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'term_name', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii