Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* Projects */
- $labels = array(
- 'name' => __( 'Projects', 'macedoarquitectos' ),
- 'singular_name' => __( 'Project', 'macedoarquitectos' ),
- );
- register_post_type(
- 'project',
- array(
- 'labels' => array(
- 'name' => $labels['name'],
- 'singular_name' => $labels['singular_name'],
- 'menu_name' => $labels['name'],
- //'parent_item_colon' => sprintf('Parent %s:', $labels['singular_name']),
- 'all_items' => sprintf( __('All %s', 'macedoarquitectos'), $labels['name'] ),
- 'view_item' => sprintf( __('View %s', 'macedoarquitectos'), $labels['singular_name']),
- 'add_new_item' => sprintf( __('Add New %s', 'macedoarquitectos'), $labels['singular_name']),
- 'add_new' => __('Add New', 'macedoarquitectos'),
- 'edit_item' => sprintf( __('Edit %s', 'macedoarquitectos'), $labels['singular_name']),
- 'update_item' => sprintf( __('Update %s', 'macedoarquitectos'), $labels['singular_name']),
- 'search_items' => sprintf( __('Search %s', 'macedoarquitectos'), $labels['singular_name']),
- 'not_found' => __('Not found', 'macedoarquitectos'),
- 'not_found_in_trash' => __('Not found in Trash', 'macedoarquitectos'),
- ),
- 'supports' => array( 'title', 'author', 'revisions', 'page-attributes'),
- 'hierarchical' => false, // For performance issues
- 'public' => true,
- 'show_ui' => true,
- 'show_in_menu' => true,
- 'show_in_nav_menus' => true,
- 'show_in_admin_bar' => true,
- //'menu_position' => 21,
- 'menu_icon' => 'dashicons-clipboard',
- 'can_export' => true,
- 'has_archive' => true,
- 'exclude_from_search' => false,
- 'publicly_queryable' => true,
- 'rewrite' => true,
- 'capability_type' => 'page',
- )
- );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement