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 |
---|---|
660 | $args['topic_count_text_callback'] = create_function('$count', $body); |
661 | } |
662 |
|
663 | $args = wp_parse_args( $args, $defaults ); |
664 | extract( $args ); |
665 |
|
666 | if ( empty( $tags ) ) |
667 | return; |
668 |
|
669 | $tags_sorted = apply_filters( 'tag_cloud_sort', $tags, $args ); |
670 | if ( $tags_sorted != $tags ) { // the tags have been sorted by a plugin |
671 | $tags = $tags_sorted; |
672 | unset($tags_sorted); |
673 | } else { |
674 | if ( 'RAND' == $order ) { |
675 | shuffle($tags); |
676 | } else { |
677 | // SQL cannot save you; this is a second (potentially different) sort on a subset of data. |
678 | if ( 'name' == $orderby ) |