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 |
---|---|
1067 | * @since 4.2.0 |
1068 | * |
1069 | * @see wp_list_categories() |
1070 | * |
1071 | * @param array $css_classes An array of CSS classes to be applied to each list item. |
1072 | * @param object $category Category data object. |
1073 | * @param int $depth Depth of page, used for padding. |
1074 | * @param array $args An array of wp_list_categories() arguments. |
1075 | */ |
1076 | $css_classes = implode( ' ', apply_filters( 'category_css_class', $css_classes, $category, $depth, $args ) ); |
1077 |
|
1078 | $output .= ' class="' . $css_classes . '"'; |
1079 | $output .= ">$link\n"; |
1080 | } else { |
1081 | $output .= "\t$link<br />\n"; |
1082 | } |
1083 | } |
1084 |
|
1085 | /** |