Last active
January 17, 2017 06:57
-
-
Save sbruner/f029e7019592e30c8b83889dc6ea60d9 to your computer and use it in GitHub Desktop.
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
<?php | |
add_filter('piklist_taxonomies', 'demo_type_tax'); | |
function demo_type_tax($taxonomies) { | |
$taxonomies[] = array( | |
'post_type' => 'piklist_demo' | |
,'name' => 'piklist_demo_type' | |
,'show_admin_column' => true | |
,'configuration' => array( | |
'hierarchical' => true | |
,'labels' => piklist('taxonomy_labels', 'Demo Type') | |
,'hide_meta_box' => true | |
,'show_ui' => true | |
,'query_var' => true | |
,'rewrite' => array( | |
'slug' => 'demo-type' | |
) | |
); | |
return $taxonomies; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why was the parentheses deleted from line 19? Doesn't seem to match up now?