热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

textcl_projectsforCamel

本文由编程笔记#小编为大家整理,主要介绍了textcl_projectsforCamel相关的知识,希望对你有一定的参考价值。
本文由编程笔记#小编为大家整理,主要介绍了text cl_projects for Camel相关的知识,希望对你有一定的参考价值。




if ( ! function_exists('cpt_projects') ) {
// Register Custom Post Type
function cpt_projects() {
$labels = array(
'name' => 'project',
'singular_name' => 'Project',
'menu_name' => 'Camel Projects',
'name_admin_bar' => 'Post Type',
'archives' => 'Project Archives',
'attributes' => 'Item Attributes',
'parent_item_colon' => 'Parent Item:',
'all_items' => 'All Projects',
'add_new_item' => 'Add New Project',
'add_new' => 'Add New Project',
'new_item' => 'New Project',
'edit_item' => 'Edit Project',
'update_item' => 'Update Item',
'view_item' => 'View Project',
'view_items' => 'View Projects',
'search_items' => 'Search Item',
'not_found' => 'Not found',
'not_found_in_trash' => 'Not found in Trash',
'featured_image' => 'Featured Image',
'set_featured_image' => 'Set featured image',
'remove_featured_image' => 'Remove featured image',
'use_featured_image' => 'Use as featured image',
'insert_into_item' => 'Insert into item',
'uploaded_to_this_item' => 'Uploaded to this item',
'items_list' => 'Items list',
'items_list_navigation' => 'Items list navigation',
'filter_items_list' => 'Filter items list',
);
$rewrite = array(
'slug' => 'project',
'with_front' => true,
'pages' => true,
'feeds' => true,
);
$args = array(
'label' => 'Project',
'description' => 'Camel builds & projects',
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', 'revisions' ),
'taxonomies' => array( 'category' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-admin-home',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => 'projects',
'exclude_from_search' => false,
'publicly_queryable' => true,
'rewrite' => $rewrite,
'capability_type' => 'post',
);
register_post_type( 'project', $args );
}
add_action( 'init', 'cpt_projects', 0 );
}


推荐阅读
author-avatar
偶们滴小圈子6868
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有