| | 66 | } |
|---|
| | 67 | |
|---|
| | 68 | if ($update) { |
|---|
| | 69 | do_action("edit_term", $term_id, $tt_id); |
|---|
| | 70 | do_action("edit_$taxonomy", $term_id, $tt_id); |
|---|
| | 71 | } else { |
|---|
| | 72 | do_action("create_term", $term_id, $tt_id); |
|---|
| | 73 | do_action("create_$taxonomy", $term_id, $tt_id); |
|---|
| | 74 | } |
|---|
| | 75 | |
|---|
| | 76 | $term_id = apply_filters('term_id_filter', $term_id, $tt_id, $update); |
|---|
| | 77 | |
|---|
| | 78 | //clean_term_cache($term_id); |
|---|
| | 79 | |
|---|
| | 80 | if ($update) { |
|---|
| | 81 | do_action("edited_term", $term_id, $tt_id); |
|---|
| | 82 | do_action("edited_$taxonomy", $term_id, $tt_id); |
|---|
| | 83 | } else { |
|---|
| | 84 | do_action("created_term", $term_id, $tt_id); |
|---|
| | 85 | do_action("created_$taxonomy", $term_id, $tt_id); |
|---|