wp_generate_tag_cloud хук-фильтр . WP 2.3.0
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().
Использование
add_filter( 'wp_generate_tag_cloud', 'filter_function_name_7753', 10, 3 ); function filter_function_name_7753( $return, $tags, $args ){ // filter... return $return; }
- $return(массив/строка)
- 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(массив)
- An array of wp_generate_tag_cloud() arguments.
Список изменений
С версии 2.3.0 | Введена. |
Где вызывается хук
wp-includes/category-template.php 1038
return apply_filters( 'wp_generate_tag_cloud', $return, $tags, $args );