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 |
---|---|
226 | * @since 4.2.0 |
227 | * |
228 | * @see wp_list_categories() |
229 | * |
230 | * @param array $css_classes An array of CSS classes to be applied to each list item. |
231 | * @param object $category Category data object. |
232 | * @param int $depth Depth of page, used for padding. |
233 | * @param array $args An array of wp_list_categories() arguments. |
234 | */ |
235 | $css_classes = implode( ' ', apply_filters( 'category_css_class', $css_classes, $category, $depth, $args ) ); |
236 | $css_classes = $css_classes ? ' class="' . esc_attr( $css_classes ) . '"' : ''; |
237 |
|
238 | $output .= $css_classes; |
239 | $output .= ">$link\n"; |
240 | } elseif ( isset( $args['separator'] ) ) { |
241 | $output .= "\t$link" . $args['separator'] . "\n"; |
242 | } else { |
243 | $output .= "\t$link<br />\n"; |
244 | } |