wp_generate_tag_cloud_data

wp_generate_tag_cloud_data

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('wp_generate_tag_cloud_data') is found 1 times:

  • /wp-includes/category-template.php line 999
    0995
    0996
    0997
    0998
    0999
    1000
    1001
    1002
    1003
    1004
    1005
    * @since 4.3.0
     *
     * @param array[] $tags_data An array of term data arrays for terms used to generate the tag cloud.
     */
    $tags_data = apply_filters( 'wp_generate_tag_cloud_data', $tags_data );
     
    $a = array();
     
    // Generate the output links array.
    foreach ( $tags_data as $key => $tag_data ) {
        $class = $tag_data['class'] . ' tag-link-position-' . ( $key + 1 );