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 |
|---|---|
| 83 | * |
| 84 | * @param string $output Passed by reference. Used to append additional content. |
| 85 | * @param object $category Category data object. |
| 86 | * @param int $depth Depth of category in reference to parents. Default 0. |
| 87 | * @param array $args An array of arguments. @see wp_list_categories() |
| 88 | * @param int $id ID of the current category. |
| 89 | */ |
| 90 | public function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) { |
| 91 | /** This filter is documented in wp-includes/category-template.php */ |
| 92 | $cat_name = apply_filters( |
| 93 | 'list_cats', |
| 94 | esc_attr( $category->name ), |
| 95 | $category |
| 96 | ); |
| 97 | |
| 98 | // Don't generate an element if the category name is empty. |
| 99 | if ( ! $cat_name ) { |
| 100 | return; |
| 101 | } |