Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zanematthew/1268607 to your computer and use it in GitHub Desktop.
Save zanematthew/1268607 to your computer and use it in GitHub Desktop.
Plugin config
$_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