mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Add exit hooks to wp_insert_category(). Props kevinB. fixes #4056
git-svn-id: https://develop.svn.wordpress.org/trunk@5157 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
47ebdc76c7
commit
c37bf4c8d5
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user