| 1 | <?php function my_created_term( $term_id, $tax_id, $taxonomy ){ |
|---|
| 2 | /** |
|---|
| 3 | * Called after term is created |
|---|
| 4 | */ |
|---|
| 5 | |
|---|
| 6 | $oTerm = get_term_by( 'id', $term_id, $tax_id ); |
|---|
| 7 | error_log( "term created: {$term_id} {$tax_id} {$taxonomy}" ); |
|---|
| 8 | |
|---|
| 9 | } |
|---|
| 10 | add_action('created_term', 'my_created_term'); |
|---|
| 11 | ?> |
|---|