leasing
// Register Custom Post Type
function castom_post_leasing() {
$labels = array(
'name' => 'Банки',
'singular_name' => 'Банк',
'menu_name' => 'Лизинг/Банки',
'name_admin_bar' => '',
'archives' => '',
'attributes' => '',
'parent_item_colon' => '',
'all_items' => '',
'add_new_item' => 'Добавить новый',
'add_new' => 'Добавить',
'new_item' => 'Новый',
'edit_item' => 'Редактировать',
'update_item' => 'Обновить',
'view_item' => 'Просмотр',
'view_items' => 'Просмотр всех',
'search_items' => '',
'not_found' => '',
'not_found_in_trash' => '',
'featured_image' => '',
'set_featured_image' => '',
'remove_featured_image' => '',
'use_featured_image' => '',
'insert_into_item' => '',
'uploaded_to_this_item' => '',
'items_list' => '',
'items_list_navigation' => '',
'filter_items_list' => '',
);
$rewrite = array(
'slug' => 'leasing',
'with_front' => true,
'pages' => true,
'feeds' => true,
);
$args = array(
'label' => 'Банк',
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-building',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => true,
'publicly_queryable' => true,
'query_var' => 'leasing',
'rewrite' => $rewrite,
'capability_type' => 'page',
);
register_post_type( 'ms_leasing', $args );
}
add_action( 'init', 'castom_post_leasing', 0 );