filtrod 4.4.0
the_category_list
Opis — z kodu źródłowego
Filters the categories before building the category list.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$categories | \WP_Term[] | An array of the post's categories. |
$post_id | int | false | ID of the post to retrieve categories for. When <code>false</code>, defaults to the current post in the loop. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'the_category_list', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'the_category_list', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii