wp_generate_tag_cloud_data
Filters the data used to generate the tag cloud.
Usage
add_filter( 'wp_generate_tag_cloud_data', 'wp_kama_generate_tag_cloud_data_filter' ); /** * Function for `wp_generate_tag_cloud_data` filter-hook. * * @param array[] $tags_data An array of term data arrays for terms used to generate the tag cloud. * * @return array[] */ function wp_kama_generate_tag_cloud_data_filter( $tags_data ){ // filter... return $tags_data; }
- $tags_data(array[])
- An array of term data arrays for terms used to generate the tag cloud.
Changelog
Since 4.3.0 | Introduced. |
Where the hook is called
wp-includes/category-template.php 999
$tags_data = apply_filters( 'wp_generate_tag_cloud_data', $tags_data );