filtrod 2.8.0
tag_cloud_sort
Opis — z kodu źródłowego
Filters how the items in a tag cloud are sorted.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$tags | \WP_Term[] | Ordered array of terms. |
$args | array | An array of tag cloud arguments. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'tag_cloud_sort', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'tag_cloud_sort', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii