Created
February 5, 2014 16:49
-
-
Save slowmove/8828037 to your computer and use it in GitHub Desktop.
This file contains 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 | |
function register_person_type() { | |
$labels = array( | |
'name' => 'Personer', | |
'singular_name' => 'Person', | |
'add_new' => 'Lägg till Person', | |
'add_new_item' => 'Lägg till Person', | |
'edit_item' => 'Redigera Person', | |
'new_item' => 'Ny Person', | |
'all_items' => 'Alla Personer', | |
'view_item' => 'Visa Person', | |
'search_items' => 'Sök Personer', | |
'not_found' => 'Inga Personer funna', | |
'not_found_in_trash' => 'Inga Personer funna i papperskorgen', | |
'parent_item_colon' => '', | |
'menu_name' => 'Personer / Anställda' | |
); | |
$args = array( | |
'labels' => $labels, | |
'public' => true, | |
'publicly_queryable' => true, | |
'show_ui' => true, | |
'show_in_menu' => true, | |
'query_var' => true, | |
'rewrite' => array( 'slug' => 'person' ), | |
'capability_type' => 'post', | |
'has_archive' => true, | |
'hierarchical' => false, | |
'menu_position' => null | |
); | |
register_post_type( 'personer', $args ); | |
} | |
add_action( 'init', 'register_person_type' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment