filtrod 2.3.0
wp_generate_tag_cloud
Opis — z kodu źródłowego
Filters the generated output of a tag cloud.
The filter is only evaluated if a true value is passed to the $filter argument in wp_generate_tag_cloud().
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$return | string[] | string | String containing the generated HTML tag cloud output or an array of tag links if the 'format' argument equals 'array'. |
$tags | \WP_Term[] | An array of terms used in the tag cloud. |
$args | array | An array of wp_generate_tag_cloud() arguments. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_generate_tag_cloud', '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( 'wp_generate_tag_cloud', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii