1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: Test Hierarchical Taxonomy |
---|
4 | Plugin URI: http://voceconnect.com/ |
---|
5 | Description: A simple plugin to test the hierarchical taxonomy handling within the edit post page |
---|
6 | Author: Michael Pretty |
---|
7 | Version: 1.0 |
---|
8 | Author URI: http://voceconnect.com/ |
---|
9 | */ |
---|
10 | |
---|
11 | |
---|
12 | define('SCRIPT_DEBUG', true); |
---|
13 | define('STYLE_DEBUG', true); |
---|
14 | |
---|
15 | function register_test_taxonomy() |
---|
16 | { |
---|
17 | register_taxonomy('test-taxonomy', array('post'), array('hierarchical' => true, 'label' => 'Test Hierarchical Taxonomy')); |
---|
18 | } |
---|
19 | add_action('init', 'register_test_taxonomy'); |
---|