Skip to content

Instantly share code, notes, and snippets.

@sbruner
Last active January 17, 2017 06:57
Show Gist options
  • Save sbruner/f029e7019592e30c8b83889dc6ea60d9 to your computer and use it in GitHub Desktop.
Save sbruner/f029e7019592e30c8b83889dc6ea60d9 to your computer and use it in GitHub Desktop.
<?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;
}
@Devin-Chicras
Copy link

Why was the parentheses deleted from line 19? Doesn't seem to match up now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment