Created
May 10, 2017 09:35
-
-
Save dendeffe/8c89ae40537f36fd05a7b6ea94b36b4e 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
function mens_project_init() { | |
register_post_type( 'mens_project', array( | |
'hierarchical' => false, | |
'public' => true, | |
'show_in_nav_menus' => true, | |
'show_ui' => true, | |
'supports' => array( 'title', 'editor', 'thumbnail' ), | |
'has_archive' => false, | |
'query_var' => true, | |
'rewrite' => array( | |
'slug' => __( 'realisaties', 'tonc' ), | |
'with_front' => false | |
), | |
'labels' => array( | |
'name' => __( 'Projecten', 'tonc' ), | |
'singular_name' => __( 'Project', 'tonc' ), | |
'add_new' => __( 'Project toevoegen', 'tonc' ), | |
'all_items' => __( 'Projecten', 'tonc' ), | |
'add_new_item' => __( 'Voeg een project toe', 'tonc' ), | |
'edit_item' => __( 'Project aanpassen', 'tonc' ), | |
'new_item' => __( 'Nieuw project', 'tonc' ), | |
'view_item' => __( 'Projecten bekijken', 'tonc' ), | |
'search_items' => __( 'Zoek een project', 'tonc' ), | |
'not_found' => __( 'Geen projecten gevonden', 'tonc' ), | |
'not_found_in_trash' => __( 'Geen projecten in de prullenmand', 'tonc' ), | |
'parent_item_colon' => __( 'Hoofdproject', 'tonc' ), | |
'menu_name' => __( 'Projecten', 'tonc' ), | |
), | |
) ); | |
//flush_rewrite_rules( true ); | |
} | |
add_action( 'init', 'mens_project_init' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment