Add exit hooks to wp_insert_category(). Props kevinB. fixes #4056

git-svn-id: http://svn.automattic.com/wordpress/trunk@5157 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rob1n 2007-03-31 21:33:33 +00:00
parent d13cd6c3ce
commit b9ddc875bf
1 changed files with 5 additions and 0 deletions

View File

@ -152,6 +152,11 @@ function wp_insert_category($catarr) {
clean_category_cache($cat_ID);
if ($update)
do_action('edited_category', $cat_ID);
else
do_action('created_category', $cat_ID);
return $cat_ID;
}