Search:
Login
Preferences
Help/Guide
About Trac
Wiki
Timeline
Roadmap
Browse Source
View Tickets
Search
Ticket Graph
Context Navigation
Back to Ticket #9674
Ticket #9674
: post-type.php
File post-type.php,
223 bytes
(added by ryan,
3 years ago
)
Test plugin, drop in mu-plugins dir
Line
1
<?php
2
3
function
post_type_thingy
()
{
4
register_post_type
(
'thingy'
,
array
(
'label'
=>
__
(
'Thingies'
),
'public'
=>
true
)
);
5
register_taxonomy_for_object_type
(
'post_tag'
,
'thingy'
);
6
}
7
8
add_action
(
'init'
,
'post_type_thingy'
);
Download in other formats:
Original Format