Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_generate_tag_cloud_data

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
947      }
948
949      /**
950       * Filters the data used to generate the tag cloud.
951       *
952       * @since 4.3.0
953       *
954       * @param array $tags_data An array of term data for term used to generate the tag cloud.
955       */
956      $tags_data = apply_filters( 'wp_generate_tag_cloud_data', $tags_data );
957
958      $a = array();
959
960      // Generate the output links array.
961      foreach ( $tags_data as $key => $tag_data ) {
962           $class = $tag_data['class'] . ' tag-link-position-' . ( $key + 1 );
963           $a[]   = sprintf(
964                '<a href="%1$s"%2$s class="%3$s" style="font-size: %4$s;"%5$s>%6$s%7$s</a>',
965                esc_url( $tag_data['url'] ),