$args 是数组,而不是对象:
function test( $taxonomy, $object_type, $args ) {
echo $args[\'name\'];
}
add_action( \'registered_taxonomy\', \'test\', 10, 3 );
EDIT
使用
create_term 措施:
function my_create( $term_id, $tt_id, $taxonomy ){
$term = get_term( $term_id, $taxonomy );
echo $term->name;
}
add_action( \'create_term\', \'my_create\', 10, 3 );