filtrod 4.9.0
pre_term_link
Opis — z kodu źródłowego
Filters the permalink structure for a term before token replacement occurs.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$termlink | string | The permalink structure for the term's taxonomy. |
$term | \WP_Term | The term object. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'pre_term_link', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'pre_term_link', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii