Make WordPress Core

Ticket #9674: post-type.php

File post-type.php, 223 bytes (added by ryan, 15 years ago)

Test plugin, drop in mu-plugins dir

Line 
1<?php
2
3function post_type_thingy() {
4        register_post_type('thingy', array('label' => __('Thingies'), 'public' => true ) );
5        register_taxonomy_for_object_type('post_tag', 'thingy');
6}
7
8add_action('init', 'post_type_thingy');