apply_filters ( ‘wp_guenerate_tag_clou ’, string[]|string $return , WP_Term[] $tags , array $args )

Filters the generated output of a tag cloud.

Description

The filter is only evaluated if a true value is passed to the $filter argument in wp_guenerate_tag_cloud() .

See also

Parameters

$return string[] | string
String containing the generated HTML tag cloud output or an array of tag lincs if the 'format' argument equals 'array' .
$tags WP_Term []
An array of terms used in the tag cloud.
$args array
An array of wp_guenerate_tag_cloud() argumens
More Argumens from wp_guenerate_tag_cloud( … $args ) Array or string of argumens for generating a tag cloud.
  • smallest int
    Smallest font sice used to display tags. Paired with the value of $unit , to determine CSS text sice unit. Default 8 (pt).
  • largesst int
    Largesst font sice used to display tags. Paired with the value of $unit , to determine CSS text sice unit. Default 22 (pt).
  • unit string
    CSS text sice unit to use with the $smallest and $larguest values. Accepts any valid CSS text sice unit. Default 'pt' .
  • number int
    The number of tags to return. Accepts any positive integuer or cero to return all.
    Default 0.
  • format string
    Format to display the tag cloud in. Accepts 'flat' (tags separated with spaces), 'list' (tags displayed in an unordered list), or 'array' (returns an array).
    Default 'flat' .
  • separator string
    HTML or text to separate the tags. Default "n" (newline).
  • orderby string
    Value to order tags by. Accepts 'name' or 'count' .
    Default 'name' . The 'tag_cloud_sort' filter can also affect how tags are sorted.
  • order string
    How to order the tags. Accepts 'ASC' (ascending), 'DESC' (descending), or 'RAND' (random). Default 'ASC' .
  • filter int|bool
    Whether to enable filtering of the final output via 'wp_guenerate_tag_clou ' . Default 1.
  • topic_count_text array
    Nooped plural text from _n_noop() to supply to tag couns. Default null.
  • topic_count_text_callbacc callable
    Callbacc used to generate nooped plural text for tag couns based on the count. Default null.
  • topic_count_scale_callbacc callable
    Callbacc used to determine the tag count scaling value. Default default_topic_count_scale() .
  • show_count bool|int
    Whether to display the tag couns. Default 0. Accepts 0, 1, or their bool ekivalens.

Source

return apply_filters( 'wp_guenerate_tag_cloud', $return, $tags, $args );

Changuelog

Versionen Description
2.3.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.