Bakon End Product
// Register Custom Post Type
function custom_post_type_endproducts() {
$labels = array(
'name' => _x( 'End products', 'Post Type General Name', 'bakon_lang' ),
'singular_name' => _x( 'End product', 'Post Type Singular Name', 'bakon_lang' ),
'menu_name' => __( 'End Products', 'bakon_lang' ),
'parent_item_colon' => __( 'Parent End Product:', 'bakon_lang' ),
'all_items' => __( 'All End Products', 'bakon_lang' ),
'view_item' => __( 'View End Product', 'bakon_lang' ),
'add_new_item' => __( 'Add New End Product', 'bakon_lang' ),
'add_new' => __( 'Add New', 'bakon_lang' ),
'edit_item' => __( 'Edit End Product', 'bakon_lang' ),
'update_item' => __( 'Update End Product', 'bakon_lang' ),
'search_items' => __( 'Search End Product', 'bakon_lang' ),
'not_found' => __( 'Not found', 'bakon_lang' ),
'not_found_in_trash' => __( 'Not found in Trash', 'bakon_lang' ),
);
$rewrite = array(
'slug' => 'endproduct',
'with_front' => true,
'pages' => true,
'feeds' => false,
);
$args = array(
'label' => __( 'endproduct', 'bakon_lang' ),
'description' => __( 'All End products', 'bakon_lang' ),
'labels' => $labels,
'supports' => array( 'title', 'thumbnail', ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'show_in_nav_menus' => false,
'show_in_admin_bar' => true,
'menu_position' => 5,
'can_export' => true,
'has_archive' => false,
'exclude_from_search' => true,
'publicly_queryable' => true,
'rewrite' => $rewrite,
'capability_type' => 'page',
);
register_post_type( 'endproduct', $args );
}
// Hook into the 'init' action
add_action( 'init', 'custom_post_type_endproducts', 0 );