Make WordPress Core

Ticket #10122: test-hierarchical-taxonomy.php

File test-hierarchical-taxonomy.php, 537 bytes (added by prettyboymp, 15 years ago)

simple plugin to test

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