WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 890 | } |
| 891 | |
| 892 | /** |
| 893 | * Filters the data used to generate the tag cloud. |
| 894 | * |
| 895 | * @since 4.3.0 |
| 896 | * |
| 897 | * @param array $tags_data An array of term data for term used to generate the tag cloud. |
| 898 | */ |
| 899 | $tags_data = apply_filters( 'wp_generate_tag_cloud_data', $tags_data ); |
| 900 | |
| 901 | $a = array(); |
| 902 | |
| 903 | // generate the output links array |
| 904 | foreach ( $tags_data as $key => $tag_data ) { |
| 905 | $class = $tag_data['class'] . ' tag-link-position-' . ( $key + 1 ); |
| 906 | $a[] = "<a href='" . esc_url( $tag_data['url'] ) . "'" . $tag_data['role'] . " class='" . esc_attr( $class ) . "' title='" . esc_attr( $tag_data['title'] ) . "' style='font-size: " . esc_attr( str_replace( ',', '.', $tag_data['font_size'] ) . $args['unit'] ) . ";'>" . esc_html( $tag_data['name'] ) . "</a>"; |
| 907 | } |
| 908 | |