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 |
---|---|
89 |
|
90 | $cat_ID = (int) $cat_ID; |
91 |
|
92 | // Are we updating or creating? |
93 | if (!empty ($cat_ID)) |
94 | $update = true; |
95 | else |
96 | $update = false; |
97 |
|
98 | $cat_name = apply_filters('pre_category_name', $cat_name); |
99 |
|
100 | if (empty ($category_nicename)) |
101 | $category_nicename = sanitize_title($cat_name); |
102 | else |
103 | $category_nicename = sanitize_title($category_nicename); |
104 | $category_nicename = apply_filters('pre_category_nicename', $category_nicename); |
105 |
|
106 | if (empty ($category_description)) |
107 | $category_description = ''; |