Make WordPress Core

Ticket #26104: wp_bug__created_term.php

File wp_bug__created_term.php, 278 bytes (added by kiddhustle, 12 years ago)

Sample action hook callback: created_term

Line 
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}
10add_action('created_term', 'my_created_term');
11?>