Dish
// Register Custom Post Type
function custom_post_type_dish() {
$labels = array(
'name' => 'dishes',
'singular_name' => 'dish',
'menu_name' => 'מנה',
'name_admin_bar' => 'מנה',
'parent_item_colon' => 'אב מנה',
'all_items' => 'כל המנות',
'add_new_item' => 'הוסף מנה',
'add_new' => 'הוסף מנה',
'new_item' => 'הוסף מנה',
'edit_item' => 'ערוך מנה',
'update_item' => 'עדכן מנה',
'view_item' => 'ראה מנה',
'search_items' => 'חפש מנה',
'not_found' => 'לא נמצאו מנות',
'not_found_in_trash' => 'לא נמצאו מנות באשפה',
);
$args = array(
'label' => 'dish',
'description' => 'Post Type Description Dish',
'labels' => $labels,
'supports' => array( 'title', 'editor', 'author', 'thumbnail', ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'show_in_admin_bar' => false,
'show_in_nav_menus' => false,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'dish', $args );
}
// Hook into the 'init' action
add_action( 'init', 'custom_post_type_dish', 0 );