category_description

category_description is a filter on the "category_description" field for categories. It is able to pass 2 parameters. The first is the description itself, and the second is the category ID.

Context:

File: wp-includes/template-functions-category.php
function category_description($category = 0) {
    global $cat;
    if (!$category) $category = $cat;
		$category = & get_category($category);
    return apply_filters('category_description', $category->category_description, $category->cat_ID);
}

This hook can pass multiple parameters. In order to get additional parameters (up to 2 for this hook) passed to your function, you will have to hook in like this: add_filter('category_description', 'your_function', 10, 2); where 10 is your function's priority, and 2 is the number of parameters you want your function to accept. Note that your function should only return the first parameter.

This hook is a filter which means that information is passed through it, and then used by WordPress. Your function needs to accept that information, and return it. Using add_filter('category_description', 'your_function'); helps you to remember this distinction. When you are passing an ID, it is assumed that you will return the ID as it was given to you. With filters that pass strings or arrays, you may manipulate the information before passing it along.