Created
October 6, 2011 20:43
-
-
Save zanematthew/1268607 to your computer and use it in GitHub Desktop.
Plugin config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$_GLOBALS['task'] = new CustomPostType(); | |
$_GLOBALS['task']->post_type = array( | |
array( | |
'name' => 'Task', | |
'type' => 'task', | |
'supports' => array( | |
'title', | |
'editor', | |
'author', | |
'comments' | |
), | |
// @todo automate mother fuckergrrrrr | |
'taxonomies' => array( | |
'assigned', | |
'milestone', | |
'priority', | |
'project', | |
'status', | |
'type' | |
) | |
), | |
array( | |
// in essence you can have as many as you like, since I loop over all. | |
) | |
); | |
$_GLOBALS['task']->taxonomy = array( | |
array( | |
'name' => 'assigned', | |
'post_type' => 'task' | |
), | |
array( | |
'name' => 'milestone', | |
'post_type' => 'task' | |
), | |
array( | |
'name' => 'priority', | |
'post_type' => 'task' | |
), | |
array( | |
'name' => 'project', | |
'post_type' => 'task' | |
), | |
array( | |
'name' => 'status', | |
'post_type' => 'task' | |
), | |
array( | |
'name' => 'type', | |
'post_type' => 'task' | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment