Skip to content

Instantly share code, notes, and snippets.

@dendeffe
Created April 20, 2015 09:37
Show Gist options
  • Save dendeffe/db2dc73b165dc22be3df to your computer and use it in GitHub Desktop.
Save dendeffe/db2dc73b165dc22be3df to your computer and use it in GitHub Desktop.
// Register training taxonomy
// Add new taxonomy, NOT hierarchical (like tags)
$labels = array(
'name' => __( 'Type training', 'taxonomy general name' ),
'singular_name' => __( 'Type training', 'taxonomy singular name' ),
'search_items' => __( 'Zoek in types training' ),
'popular_items' => __( 'Vaak gebruikte trainingtypes' ),
'all_items' => __( 'Alle trainingtypes' ),
'parent_item' => null,
'parent_item_colon' => null,
'edit_item' => __( 'Trainingstype bewerken' ),
'update_item' => __( 'Trainingstype updaten' ),
'add_new_item' => __( 'Nieuw type training toevoegen' ),
'new_item_name' => __( 'Nieuw type training' ),
'separate_items_with_commas' => __( 'Als je verschillende types toevoegt, scheid ze dan met een komma' ),
'add_or_remove_items' => __( 'Trainingstypes toevoegen of verwijderen' ),
'choose_from_most_used' => __( 'Kies uit de meest gebruikte types' ),
'not_found' => __( 'Geen types gevonden' ),
'menu_name' => __( 'Trainingstypes' ),
);
$args = array(
'hierarchical' => false,
'labels' => $labels,
'show_ui' => true,
'show_admin_column' => true,
'query_var' => true,
'rewrite' => array( 'slug' => 'trainings-type' ),
);
register_taxonomy( 'defunktnucoursetags', 'defunktnucourse', $args );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment