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 |
---|---|
981 | } |
982 |
|
983 | /** |
984 | * Filters the data used to generate the tag cloud. |
985 | * |
986 | * @since 4.3.0 |
987 | * |
988 | * @param array[] $tags_data An array of term data arrays for terms used to generate the tag cloud. |
989 | */ |
990 | $tags_data = apply_filters( 'wp_generate_tag_cloud_data', $tags_data ); |
991 |
|
992 | $a = array(); |
993 |
|
994 | // Generate the output links array. |
995 | foreach ( $tags_data as $key => $tag_data ) { |
996 | $class = $tag_data['class'] . ' tag-link-position-' . ( $key + 1 ); |
997 | $a[] = sprintf( |
998 | '<a href="%1$s"%2$s class="%3$s" style="font-size: %4$s;"%5$s>%6$s%7$s</a>', |
999 | esc_url( $tag_data['url'] ), |