filtrod 1.2.0
the_category
Opis — z kodu źródłowego
Filters the category or list of categories.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$thelist | string | List of categories for the current post. |
$separator | string | Separator used between the categories. |
$parents | string | How to display the category parents. Accepts 'multiple', 'single', or empty. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'the_category', '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( 'the_category', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii